diff --git a/src/gridstack.js b/src/gridstack.js index 82267aa..afd7843 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -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, _);