Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated for IE7 compatibility, explicitly setting new models as attri…

…butes of 'window'.
  • Loading branch information...
commit e699f08a23821e361b6f18177c5ec5f2b0ae7ad3 1 parent 7c67dbd
Eric Mill authored
Showing with 8 additions and 0 deletions.
  1. +3 −0  jester.js
  2. +5 −0 test/jester_test.html
View
3  jester.js
@@ -77,6 +77,9 @@ Object.extend(Jester.Resource, {
if (options.checkNew)
this.buildAttributes(new_model, options.asynchronous);
+ if (window)
+ window[model] = new_model;
+
return new_model;
},
View
5 test/jester_test.html
@@ -649,6 +649,11 @@
/********************************************
************ INTERNAL TESTS ****************
********************************************/
+
+ function testGlobalScope() {
+ // IE7 compatibility
+ assertEquals("IE7 incompatibility", User, window.User);
+ }
function testSetProperties() {
var eric = User.build()
Please sign in to comment.
Something went wrong with that request. Please try again.