Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e3ca0b
commit 7d440ac
Showing
5 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
(function(modules, root, factory) { | ||
(function (modules, root, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(modules, factory); | ||
} else if (typeof module === "object" && module.exports) { | ||
module.exports = factory.apply(root, modules.map(require)); | ||
} else { | ||
root["mu-jquery-loom/jquery.crank"] = factory.apply(root, modules.map(function(m) { | ||
return { | ||
root["mu-jquery-loom/jquery.crank"] = factory.apply(root, modules.map(function (m) { | ||
return this[m] || root[m]; | ||
}, { | ||
"jquery": root.jQuery | ||
}[m] || root[m]; | ||
})); | ||
})); | ||
} | ||
})([ | ||
"jquery", | ||
"mu-jquery-crank/jquery.crank" | ||
], this, function($, crank) { | ||
], this, function ($, crank) { | ||
var slice = Array.prototype.slice; | ||
var re = /\s+/; | ||
|
||
return function (attr) { | ||
return crank.apply(this, [function($element) { | ||
return ($element.attr(attr) || "").split(re); | ||
}].concat(slice.call(arguments, 1))); | ||
return crank.apply(this, [function ($element) { | ||
return ($element.attr(attr) || "").split(re); | ||
}].concat(slice.call(arguments, 1))); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters