Skip to content

Commit

Permalink
Use 'window' instead of 'this'
Browse files Browse the repository at this point in the history
Firefox 4 was having problems with 'this'
  • Loading branch information
Jimmy Do committed Mar 18, 2011
1 parent 7585ecd commit e0cac9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toolbox.extras.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function () {
var Toolbox = this.Toolbox = (this.Toolbox || {});
var Toolbox = window.Toolbox = (window.Toolbox || {});

// Declare a computed property.
// `watched` is a list of property names that this computed property depends on.
Expand Down
2 changes: 1 addition & 1 deletion toolbox.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function () {
"use strict";

var Toolbox = this.Toolbox = {};
var Toolbox = window.Toolbox = {};

// `ctor` and `inherits` are from Backbone (with some modifications):
// http://documentcloud.github.com/backbone/
Expand Down

0 comments on commit e0cac9f

Please sign in to comment.