Reputation:
I'm working with the event system and I wanted to run some quick commands in the console.
I noticed the global variable Backbone is available in the JavaScript window of www.jsfiddle.net but not from the console.
console.log('hello');
console.log(Backbone);
This is different behavior from what I'm use to.
When I type Backbone into the console ( I am in FF 14 ) I get:
ReferenceError: Backbone is not defined
Upvotes: 1
Views: 349
Reputation: 318808
That's the joy of iframes (or frames in general). Chances are good that the console panel you had was attached to the parent site and not to the iframe containing your code (and thus the Backbone
object)
Upvotes: 2