EternallyCurious
EternallyCurious

Reputation: 2415

BackboneJS is unable to call functions from UnderscoreJS

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

Upvotes: 0

Views: 57

Answers (2)

EternallyCurious
EternallyCurious

Reputation: 2415

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

Upvotes: 1

gbsice
gbsice

Reputation: 541

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?

Upvotes: 2

Related Questions