cm-web-modules
Advanced tools
Comparing version 1.5.5 to 1.5.6
{ | ||
"name": "cm-web-modules", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"description": "Collection of clean and small ES6 modules for the web", | ||
@@ -5,0 +5,0 @@ "main": "src/LibraryManager.js", |
@@ -6,4 +6,3 @@ // author: Remy Sharp | ||
// | ||
// ES6 Version by Stefan Haack, this is a tweaked 1.1.2 of Bind.js | ||
// - fixed the "SELECT" issue https://github.com/remy/bind.js/pull/35/commits/d202c2056ea7506cd152682fe5b9ffd254a51a5d | ||
// ES6 Version by Stefan Haack, this is a tweaked 1.1.4 of Bind.js | ||
// - added "export" | ||
@@ -26,3 +25,3 @@ // - added index for arrays in html.push(transform(value, target, index)) | ||
}; | ||
var tryit = function (fn) { | ||
var tryIt = function (fn) { | ||
return function () { | ||
@@ -176,6 +175,6 @@ try { | ||
if (selector.transform) { | ||
transform = tryit(selector.transform.bind({ safe: safe })); | ||
transform = tryIt(selector.transform.bind({ safe: safe })); | ||
} | ||
if (selector.parse) { | ||
parse = tryit(selector.parse); | ||
parse = tryIt(selector.parse); | ||
} | ||
@@ -190,3 +189,3 @@ // finally assign the DOM selector to the selector var so code | ||
// cache the matched elements. Note the :) is because qSA won't allow an | ||
// empty (or undefined) string so I like the smilie. | ||
// empty (or undefined) string so I like the smiley. | ||
elements = $(selector || '☺'); | ||
@@ -550,3 +549,3 @@ } else if (global.Element && selector instanceof global.Element) { | ||
if (!(object instanceof Object)) { | ||
return object; // this is a primative | ||
return object; // this is a primitive | ||
} | ||
@@ -610,5 +609,5 @@ | ||
// in a setTimeout(fn, 0) - but this means any changes that are | ||
// synchonous in the code that creates the bind object, will | ||
// synchronous in the code that creates the bind object, will | ||
// run *before* this callback loop runs. Basically: race. | ||
forEach(settings.deferred, function deferreds(fn) { | ||
forEach(settings.deferred, function (fn) { | ||
fn(); | ||
@@ -632,2 +631,2 @@ }); | ||
module.exports = Bind; | ||
} | ||
} |
104182
1858