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.
Asked
Active
Viewed 55 times
0
-
How are you importing the scripts? – max Jan 24 '14 at 14:10
-
What version of Underxscore do you use? – nikoshr Jan 24 '14 at 14:17
2 Answers
2
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?

gbsice
- 541
- 4
- 9
-
The CDN was serving an outdated version. I fixed that. Thanks though. – EternallyCurious Jan 25 '14 at 05:16
1
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

EternallyCurious
- 2,345
- 7
- 47
- 78