File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -51,18 +51,11 @@ def closure_fragment(
51
51
52
52
# Wrap the output in two functions. The outer function ensures the
53
53
# compiled fragment never pollutes the global scope by using its
54
- # own scope on each invocation. We must import window.navigator into
55
- # this unique scope since Closure's goog.userAgent package assumes
56
- # navigator and document are defined on goog.global. Normally, this
57
- # would be window, but we are explicitly defining the fragment so that
58
- # goog.global is _not_ window.
59
- # See http://code.google.com/p/selenium/issues/detail?id=1333
54
+ # own scope on each invocation.
60
55
wrapper = (
61
56
"function(){" +
62
- "return (function(){%output%; return this._.apply(null,arguments);}).apply({" +
63
- "navigator:typeof window!='undefined'?window.navigator:null," +
64
- "document:typeof window!='undefined'?window.document:null" +
65
- "}, arguments);}"
57
+ "return (function(){%output%; return this._.apply(null,arguments);}).apply(" +
58
+ "window, arguments);}"
66
59
)
67
60
68
61
browser_defs = {
You can’t perform that action at this time.
0 commit comments