Skip to content

Commit

Permalink
v0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Martin committed Jan 30, 2015
1 parent 83445c5 commit d4667e6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "z.js",
"version": "0.0.7",
"version": "0.0.8",
"homepage": "https://github.com/NEURS/z.js",
"authors": [
"Kevin Martin <[email protected]>"
Expand Down
13 changes: 7 additions & 6 deletions dist/z.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* z.js JavaScript Library v0.0.7
* z.js JavaScript Library v0.0.8
* https://github.com/NEURS/z.js
*
* Copyright 2014 NEURS LLC, Kevin J. Martin, and other contributors
* Released under the MIT license
* https://github.com/NEURS/z.js/blob/master/LICENSE
*
* Date: 2015-01-30T21:25Z
* Date: 2015-01-30T21:43Z
*/
;(function (window, document) {

Expand Down Expand Up @@ -262,17 +262,18 @@ function _addClass(className) {
if ("classList" in this) {
this.classList.add(className);
} else {
this.className += " " + className;
this.setAttribute("class", this.getAttribute("class") + " " + className);
}
}

function _removeClass(className) {
var regexp;
var value;

if ("classList" in this) {
this.classList.remove(className);
} else {
this.className = this.className.replace(_classRegexp(className), " ");
value = this.getAttribute("class").replace(_classRegexp(className), " ");
this.setAttribute("class", value);
}
}

Expand Down Expand Up @@ -894,7 +895,7 @@ var _cache = (function () {
return cache[key];
}
};
});
})();

function _checkValidElement(elem) {
if (elem instanceof zArray) {
Expand Down
2 changes: 1 addition & 1 deletion dist/z.min.js

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions dist/z.sm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/z.sm.min.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions lib/classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ function _addClass(className) {
if ("classList" in this) {
this.classList.add(className);
} else {
this.className += " " + className;
this.setAttribute("class", this.getAttribute("class") + " " + className);
}
}

function _removeClass(className) {
var regexp;
var value;

if ("classList" in this) {
this.classList.remove(className);
} else {
this.className = this.className.replace(_classRegexp(className), " ");
value = this.getAttribute("class").replace(_classRegexp(className), " ");
this.setAttribute("class", value);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "z.js",
"version": "0.0.7",
"version": "0.0.8",
"description": "Simple DOM Manipulator",
"main": "",
"scripts": {
Expand Down

0 comments on commit d4667e6

Please sign in to comment.