0

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

2
  • How are you importing the scripts? Commented Jan 24, 2014 at 14:10
  • What version of Underxscore do you use? Commented Jan 24, 2014 at 14:17

2 Answers 2

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?

Sign up to request clarification or add additional context in comments.

1 Comment

The CDN was serving an outdated version. I fixed that. Thanks though.
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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.