lodash.js support

This commit is contained in:
Pavel Reznikov 2015-03-10 23:26:44 -07:00
commit 95328b7455
8 changed files with 13 additions and 10 deletions

View file

@ -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);