try load lodash, otherwise use global _

This commit is contained in:
Chaoyu 2015-10-09 15:22:00 -07:00
commit 3be2105a93

View file

@ -10,7 +10,8 @@
}
else if (typeof exports !== 'undefined') {
try { jQuery = require('jquery'); } catch(e) {}
factory(jQuery, require("lodash"));
try { _ = require('lodash'); } catch(e) {}
factory(jQuery, _);
}
else {
factory(jQuery, _);