Skip to content

Commit

Permalink
improve memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kupriyanenko committed Apr 6, 2014
1 parent 6f6e63d commit 7e85efa
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ module.exports = function(grunt) {
},
dist: {
src: "<%= src %>",
dest: 'dist/jbone.js',
},
dest: 'dist/jbone.js'
}
},
uglify: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jbone",
"version": "1.0.7",
"version": "1.0.8",
"ignore": [
"**/.*",
"node_modules",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jbone",
"repo": "kupriyanenko/jbone",
"description": "JavaScript Library for DOM manipulation. Replacement jQuery for Backbone in browsers (2.5kb gzipped)",
"version": "1.0.7",
"version": "1.0.8",
"keywords": [
"jquery",
"jbone",
Expand Down
5 changes: 2 additions & 3 deletions dist/jbone.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jBone v1.0.7 - 2014-02-21 - Library for DOM manipulation
* jBone v1.0.8 - 2014-04-06 - Library for DOM manipulation
*
* https://github.com/kupriyanenko/jbone
*
Expand Down Expand Up @@ -724,8 +724,7 @@ jBone.fn.remove = function() {
el = this[i];

delete jBone._cache.events[el.jid];

el.jdata = {};
delete el.jdata;
el.parentNode && el.parentNode.removeChild(el);
}

Expand Down
4 changes: 2 additions & 2 deletions dist/jbone.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jbone",
"title": "jBone",
"version": "1.0.7",
"version": "1.0.8",
"description": "Library for DOM manipulation",
"main": "dist/jbone.js",
"homepage": "https://github.com/kupriyanenko/jbone",
Expand Down
3 changes: 1 addition & 2 deletions src/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ jBone.fn.remove = function() {
el = this[i];

delete jBone._cache.events[el.jid];

el.jdata = {};
delete el.jdata;
el.parentNode && el.parentNode.removeChild(el);
}

Expand Down

0 comments on commit 7e85efa

Please sign in to comment.