Question

I am working on installing BackboneJS in my project - and it loads fine when its referenced and loaded from the HTML page. However, when backbone API is called from my main.js, then it shows an error. The error says that its unable to access an API call in Underscore.js even though UnderscoreJS is called and loaded. Here's the error as it shows in Chrome.

enter image description here

Was it helpful?

Solution 2

I canged the CDN used to get the minified underscore file and it worked.

Here's the earlier one I had which is appears to be outdated:

cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js

Here's the right one:

https://rawgithub.com/jashkenas/underscore/master/underscore-min.js

OTHER TIPS

The result function was added in Underscore 1.3.3 and Backbone requires at least version 1.5.0. Are you sure you comply to these requirements?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top