lodash.js support
This commit is contained in:
parent
6768a14802
commit
95328b7455
8 changed files with 13 additions and 10 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery', 'underscore'], factory);
|
||||
define(['jquery', 'lodash'], factory);
|
||||
}
|
||||
else {
|
||||
factory(jQuery, _);
|
||||
|
|
@ -435,7 +435,7 @@
|
|||
});
|
||||
_.chain(elements).sortBy(function (x) { return x.i; }).each(function (i) {
|
||||
self._prepare_element(i.el);
|
||||
});
|
||||
}).value();
|
||||
}
|
||||
|
||||
this.set_animation(this.opts.animate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue