dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

Utilities.js Lodash not being defined, when underscore is defined by a superseding script #523

Closed tb01923 closed 10 years ago

tb01923 commented 10 years ago

WE use underscore on our site, and recently upgraded to node-orm2 2.1.15 with some immediate issues. It looks as though Utilities.js doesn't explicitly define the lodash variable and is therefore is causing issues with the cloneDeep function.

Change this:

  _ = require('lodash')

To This:

 var _ = require('lodash')

seems to do the trick. If you provide some instructions on how, I can provide a patch, or someone can make this change on our behalf.

Thanks

dxg commented 10 years ago

Fixed on master