Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

window isn't available, only use this

  • Loading branch information...
commit 637ceb206fc2bc9e1b2c99b9cbe526f5ff0d2b44 1 parent 4d849da
@duncanbeevers authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/jack.js
View
8 src/jack.js
@@ -10,8 +10,7 @@ function jack() {} // This needs to be here to make error reporting work correct
(function (window){ // START HIDING FROM GLOBAL SCOPE
/** EXPORT JACK **/
- this.jack = new Jack();
- window.jack = this.jack;
+ window.jack = new Jack();
window.jack.matchers = new Matchers();
window.jack.util = new Util();
window.jack.FunctionSpecification = FunctionSpecification;
@@ -190,7 +189,7 @@ function jack() {} // This needs to be here to make error reporting work correct
return findGrab(name).reportAll(name);
}
function findGrab(name) {
- var parts = name.split(".");
+ var parts = name.toString().split(".");
if(1 === parts.length && null !== functionGrabs[name]) {
return functionGrabs[name];
} else if(1 === parts.length && null !== objectGrabs[name]) {
@@ -849,6 +848,5 @@ function jack() {} // This needs to be here to make error reporting work correct
}
};
}
-
-}).call(this, window); // END HIDING FROM GLOBAL SCOPE
+})(this); // END HIDING FROM GLOBAL SCOPE

0 comments on commit 637ceb2

Please sign in to comment.
Something went wrong with that request. Please try again.