File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11load ("@io_bazel_rules_closure//closure:defs.bzl" , "closure_js_binary" , "closure_js_library" )
22
3+ EXPORT_FUNCTION_NAME = "se_exportedFunctionSymbol"
4+
35def _internal_closure_fragment_export_impl (ctx ):
46 ctx .actions .write (
57 output = ctx .outputs .out ,
68 content = """
79goog.require('%s');
8- goog.exportSymbol('_ ', %s);
9- """ % (ctx .attr .module , ctx .attr .function ),
10+ goog.exportSymbol('%s ', %s);
11+ """ % (ctx .attr .module , EXPORT_FUNCTION_NAME , ctx .attr .function ),
1012 )
1113
1214_internal_closure_fragment_export = rule (
@@ -59,10 +61,7 @@ def closure_fragment(
5961 # See http://code.google.com/p/selenium/issues/detail?id=1333
6062 wrapper = (
6163 "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);}"
64+ "return (function(){%output%; return this." + EXPORT_FUNCTION_NAME + ".apply(null,arguments);}).apply(window, arguments);}"
6665 )
6766
6867 browser_defs = {
You can’t perform that action at this time.
0 commit comments