Skip to content
/ jbone Public
forked from kupriyanenko/jbone

JavaScript Library for DOM manipulation. Replacement jQuery for Backbone in browsers (2.5kb gzipped)

License

Notifications You must be signed in to change notification settings

zafisoft/jbone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jBone

Build Status

JavaScript Library for DOM manipulation in modern browsers with jQuery-compatible API.

Replacement jQuery for Backbone in browsers (2kb gzipped)

Installation

Get it

$ bower install jbone --save

Add a <script> element for jbone.js

<script src="path/to/jbone/dist/jbone.js"></script>

Use it

var $input = $("<input>", {
	"class": "name"
}).val('John');

$input.on("click.space", function(e) {
	console.log("clicked on", this);
});

$input.trigger("click");

$input.off(".space");

AJAX, Deferred

This part is not covered on jBone. Yuo can select one of a huge amount implementations AJAX and Promises/A+.

For example: when, Q, simply-deferred, AJAX.

Example AJAX connecting:

// connect reqwest on your page https://rawgithub.com/ded/reqwest/master/reqwest.min.js

jBone.ajax = reqwest.compat;

$.ajax({
    url: "example.com"
});

Example Deffered connecting:

// connect simply-deferred on your page https://rawgithub.com/sudhirj/simply-deferred/master/deferred.min.js

Deferred.installInto(jBone);

var deferred = $.Deferred();

$.when(deferred).then(function(response) {
    // some code
});

API

jBone

Attributes

Data

Event

Manipulation

Traversing

Utilities

Array methods

Running the Tests

Node

  1. npm install
  2. npm test

Browsers

  1. npm install
  2. Open page with tests in browser test/tests.html

About

JavaScript Library for DOM manipulation. Replacement jQuery for Backbone in browsers (2.5kb gzipped)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%