user1637281
user1637281

Reputation:

Backbone - accessing in jsfiddle console

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.

Here is the fiddle.

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

Answers (1)

ThiefMaster
ThiefMaster

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

Related Questions