Skip to content

Commit

Permalink
don't use arguments.callee (forbidden in strict mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpizz committed Feb 28, 2012
1 parent d37af8f commit 368f12a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions lightningjs-embed.js
Expand Up @@ -95,7 +95,7 @@ window.lightningjs || (function(modules){

// download the library (if a URL was given...otherwise we
// assume that something else is providing this namespace)
internalModule.l && (function() {
var downloadIntoFrameContext = function() {

// this helper is used to build the inner iframe where
// the module will live in its own window context
Expand All @@ -115,7 +115,7 @@ window.lightningjs || (function(modules){
// if the document body does not exist yet, wait 100ms
// and retry this anonymous closure
if (!documentBody) {
return setTimeout(arguments.callee, 100)
return setTimeout(downloadIntoFrameContext, 100)
}

// performance tracking: we have reached stage 1 (building inner frame)
Expand Down Expand Up @@ -176,7 +176,8 @@ window.lightningjs || (function(modules){
// the loader to execute, we want to know how long it took
internalModule.P(2)

})()
};
internalModule.l && downloadIntoFrameContext();
})()
})();

Expand Down
6 changes: 3 additions & 3 deletions lightningjs-embed.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 368f12a

Please sign in to comment.