I'm trying to get jsfiddle up and running so I can start learning some javascript. I searched around for how to include underscore.js and backbone.js and found stuff like this: Using jsfiddle: how can I use underscore.js or backbone.js libraries?
I'm trying to do the same thing but am having trouble. I basically went to jsfiddle.net. Then I went to the left on Manage Resources and added these two:
http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js
http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.10/backbone-min.js
That's all I did. Then when I tried typing some code into the JS window:
var Vehicle = Backbone.Model.extend({
prop1: '1'
});
var v = new Vehicle();
console.log(v.prop1);
When I look at the Console, I just see:
TypeError: f.result is not a function
[Break On This Error]
...s);this._listeners={}}return this}}};h.bind=h.on;h.unbind=h.off;f.extend(g,h);va...
backbone-min.js (line 11)
Did I set up my jsfiddle environment correctly? Thanks!
underscore
and checkbackbone
. – yuwang