gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Getting TypeError: Object #<p> has no method 'listenTo' #39

Closed jaysachaniya closed 10 years ago

jaysachaniya commented 11 years ago

I am trying to run an first example on the site and I am getting the following error.

Uncaught TypeError: Object # p has no method 'listenTo' (backbone.epoxy.js:1315)

Example link: http://jsfiddle.net/LhRBP/

ckniffen commented 11 years ago

It appears that your fiddle is not using the newer versions of the libraries that epoxy depends on. I updated backbone and underscore to their minimum supported versions.

http://jsfiddle.net/LhRBP/1/

gmac commented 10 years ago

Yep, @ckniffen is exactly right. You're running Backbone 0.9.2 in your JS Fiddle. Epoxy has a very hard dependency on Backbone 0.9.9+, which is when they introduced the IOC Events API with listenTo and stopListening methods.