Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created July 5, 2013 10:23
Show Gist options
  • Save justinvdm/5933604 to your computer and use it in GitHub Desktop.
Save justinvdm/5933604 to your computer and use it in GitHub Desktop.
diff --git a/go/base/static/js/src/go.js b/go/base/static/js/src/go.js
index 444d2e9..04b9708 100644
--- a/go/base/static/js/src/go.js
+++ b/go/base/static/js/src/go.js
@@ -10,4 +10,4 @@
// Models created automatically when added to Backbone.Collection won't be
// recognised as instances of Backbone.Model, so we need to change this.
Backbone.Collection.prototype.model = Backbone.Model;
-})(window.go);
+})(window.go = window.go || {});
@hodgestar
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment