Skip to content

Commit 368f12a

Browse files
committed
don't use arguments.callee (forbidden in strict mode)
1 parent d37af8f commit 368f12a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: lightningjs-embed.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ window.lightningjs || (function(modules){
9595

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

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

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

179-
})()
179+
};
180+
internalModule.l && downloadIntoFrameContext();
180181
})()
181182
})();
182183

Diff for: lightningjs-embed.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)