try load lodash, otherwise use global _
This commit is contained in:
parent
b7c7b3b8f3
commit
3be2105a93
1 changed files with 2 additions and 1 deletions
|
|
@ -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, _);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue