modify rakefile build_advanced to strip off my call to _.initWrapper()

This commit is contained in:
Mike Frawley
2010-02-23 18:13:46 -06:00
parent f591f68546
commit c9b41a4996
2 changed files with 2 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ task :build_advanced do
# remove wrapping anonymous function as this messes with closure compiler
# see
# http://groups.google.com/group/closure-compiler-discuss/browse_thread/thread/b59b54c1a0073aa5
js.sub!('(function() {', '').chomp!("})();\n")
js.sub!('(function() {', '').chomp!("_.initWrapper();\n})();\n")
compiler = Closure::Compiler.new \
:compilation_level => 'ADVANCED_OPTIMIZATIONS',
:formatting => 'PRETTY_PRINT'

View File

@@ -697,5 +697,6 @@
};
}
// For backwards compatability, init the OO wrapper
_.initWrapper();
})();