Skip to content

Commit

Permalink
0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iamso committed Mar 14, 2016
1 parent 0073394 commit cde4612
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 39 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "u.js",
"version": "0.25.0",
"version": "0.26.0",
"description": "micro framework, utility library",
"repository": {
"type": "git",
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": "u.js",
"repository": "iamso/u.js",
"description": "micro framework, utility library",
"version": "0.25.0",
"version": "0.26.0",
"keywords": [
"micro",
"framework",
Expand Down
4 changes: 2 additions & 2 deletions dist/u.ie9.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* u.js - Version 0.25.0 - IE 9 fix
* u.js - Version 0.26.0 - IE 9 fix
* Fix for the missing classList in IE 9
* Author: Steve Ottoz <so@dev.so>
* Build date: 2016-03-12
* Build date: 2016-03-14
* Copyright (c) 2016 Steve Ottoz
* Released under the MIT license
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/u.ie9.min.js

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

20 changes: 11 additions & 9 deletions dist/u.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* u.js - Version 0.25.0
* u.js - Version 0.26.0
* micro framework, utility library
* Author: Steve Ottoz <so@dev.so>
* Build date: 2016-03-12
* Build date: 2016-03-14
* Copyright (c) 2016 Steve Ottoz
* Released under the MIT license
*/
Expand Down Expand Up @@ -519,7 +519,7 @@
* u version
* @type {string}
*/
u.version = '0.25.0';
u.version = '0.26.0';


/**
Expand Down Expand Up @@ -600,7 +600,7 @@
* u.js object identifier
* @type {string}
*/
ujs: '0.25.0',
ujs: '0.26.0',


/**
Expand Down Expand Up @@ -1512,15 +1512,17 @@

/**
* addClass, removeClass and toggleClass methods
* @param {string} cls - class name
* @return {object} this
* @param {string} cls - class name
* @param {boolean} force - (only for toggle) if true add, if false remove class
* @return {object} this
*/
u.each(props, function(index, prop) {
u[prototype][prop] = function(cls) {
u[prototype][prop] = function(cls, force) {
return this.each(function(i, el) {
var classes = cls.split(' ');
u.each(classes, function(ii, cls){
el.classList[maps[index]](cls);
u.each(classes, function(ii, cls, args){
args = force !== undefined ? [cls, !!force] : [cls];
el.classList[maps[index]].apply(el.classList, args);
});
});
};
Expand Down
6 changes: 3 additions & 3 deletions dist/u.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/u.min.js.map

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions dist/u.packed.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* u.js - Version 0.25.0
* u.js - Version 0.26.0
* micro framework, utility library
* Author: Steve Ottoz <so@dev.so>
* Build date: 2016-03-12
* Build date: 2016-03-14
* Copyright (c) 2016 Steve Ottoz
* Released under the MIT license
*/
Expand Down Expand Up @@ -519,7 +519,7 @@
* u version
* @type {string}
*/
u.version = '0.25.0';
u.version = '0.26.0';


/**
Expand Down Expand Up @@ -600,7 +600,7 @@
* u.js object identifier
* @type {string}
*/
ujs: '0.25.0',
ujs: '0.26.0',


/**
Expand Down Expand Up @@ -1512,15 +1512,17 @@

/**
* addClass, removeClass and toggleClass methods
* @param {string} cls - class name
* @return {object} this
* @param {string} cls - class name
* @param {boolean} force - (only for toggle) if true add, if false remove class
* @return {object} this
*/
u.each(props, function(index, prop) {
u[prototype][prop] = function(cls) {
u[prototype][prop] = function(cls, force) {
return this.each(function(i, el) {
var classes = cls.split(' ');
u.each(classes, function(ii, cls){
el.classList[maps[index]](cls);
u.each(classes, function(ii, cls, args){
args = force !== undefined ? [cls, !!force] : [cls];
el.classList[maps[index]].apply(el.classList, args);
});
});
};
Expand Down Expand Up @@ -1556,10 +1558,10 @@


/*!
* u.js - Version 0.25.0 - IE 9 fix
* u.js - Version 0.26.0 - IE 9 fix
* Fix for the missing classList in IE 9
* Author: Steve Ottoz <so@dev.so>
* Build date: 2016-03-12
* Build date: 2016-03-14
* Copyright (c) 2016 Steve Ottoz
* Released under the MIT license
*/
Expand Down
6 changes: 3 additions & 3 deletions dist/u.packed.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/u.packed.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ujs",
"realName": "u.js",
"version": "0.25.0",
"version": "0.26.0",
"description": "micro framework, utility library",
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions src/u.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* u.js - Version 0.25.0
* u.js - Version 0.26.0
* micro framework, utility library
* Author: Steve Ottoz <so@dev.so>
* Build date: 2016-03-12
* Build date: 2016-03-14
* Copyright (c) 2016 Steve Ottoz
* Released under the MIT license
*/
Expand Down Expand Up @@ -519,7 +519,7 @@
* u version
* @type {string}
*/
u.version = '0.25.0';
u.version = '0.26.0';


/**
Expand Down Expand Up @@ -600,7 +600,7 @@
* u.js object identifier
* @type {string}
*/
ujs: '0.25.0',
ujs: '0.26.0',


/**
Expand Down

0 comments on commit cde4612

Please sign in to comment.