mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
modify rakefile build_advanced to strip off my call to _.initWrapper()
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -13,7 +13,7 @@ task :build_advanced do
|
|||||||
# remove wrapping anonymous function as this messes with closure compiler
|
# remove wrapping anonymous function as this messes with closure compiler
|
||||||
# see
|
# see
|
||||||
# http://groups.google.com/group/closure-compiler-discuss/browse_thread/thread/b59b54c1a0073aa5
|
# 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 \
|
compiler = Closure::Compiler.new \
|
||||||
:compilation_level => 'ADVANCED_OPTIMIZATIONS',
|
:compilation_level => 'ADVANCED_OPTIMIZATIONS',
|
||||||
:formatting => 'PRETTY_PRINT'
|
:formatting => 'PRETTY_PRINT'
|
||||||
|
|||||||
@@ -697,5 +697,6 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For backwards compatability, init the OO wrapper
|
||||||
_.initWrapper();
|
_.initWrapper();
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user