-
Notifications
You must be signed in to change notification settings - Fork 108
dualStorage and requireJS : Underscore is missing #125
Comments
Yes, I think you're right. I don't use AMD, so could you make the change, and send a pull request if that fixes the problem? |
Can we please have an example with Require.JS I cannot for the life of me getting it working. |
I don't use require.js, but I think these people have. @GermanDZ @matthieugayon @elad @dschien @thoaionline Could one of you please provide an example of how you use Backbone.dualStorage with require.js? /cc @BananaNeil |
Hi @Simmoniz, Below some snippets. They are copy pasted from my working code and contain unresolved reference. You will need to clean them up. Versions: "glob": "~3.2.8", My
My
Example of class using underscore:
Hope this helps. Good luck |
Thank you @dschien! |
Thankyou @dschien |
@nilbus I went offline but none of the models / collections where not being loaded? Does it save the information to local-storage? |
@elmbrent Please open a new issue, so we don't clutter this one with an unrelated conversation. |
@elmbrent use |
Since dualStorage uses underscore fonctionnalities, would the line #9 should look like this ?
})(this, function(Backbone, _) {
I am getting error "_ is not defined"
(within the amd version -> "backbone.dualstorage.amd.js")
The text was updated successfully, but these errors were encountered: