mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-26 03:00:25 +00:00
cleanup underscore.js form rakefile
This commit is contained in:
parent
0d5407bc1e
commit
27868f17de
2 changed files with 2 additions and 13 deletions
10
Rakefile
10
Rakefile
|
|
@ -6,15 +6,6 @@ desc 'Generate Externs'
|
|||
task :compile_externs do
|
||||
out = File.new("externs.js", "w")
|
||||
|
||||
out.write("function _(){};\n")
|
||||
file = File.new("lib/underscore/underscore.js", "r")
|
||||
while (line = file.gets)
|
||||
if line =~ /^\s*_\.(\w+)\s*=.*$/
|
||||
out.write("_.#{$1}=function(){};\n")
|
||||
end
|
||||
end
|
||||
file.close
|
||||
|
||||
out.write("function jQuery(){};\n")
|
||||
file = File.new("lib/jquery/jquery-1.4.2.js", "r")
|
||||
while (line = file.gets)
|
||||
|
|
@ -32,7 +23,6 @@ end
|
|||
desc 'Compile Scenario'
|
||||
task :compile_scenario do
|
||||
concat = %x(cat \
|
||||
lib/underscore/underscore.js \
|
||||
lib/jquery/jquery-1.4.2.js \
|
||||
src/scenario/angular.prefix \
|
||||
src/Angular.js \
|
||||
|
|
|
|||
5
src/scenario/bootstrap.js
vendored
5
src/scenario/bootstrap.js
vendored
|
|
@ -25,13 +25,12 @@
|
|||
};
|
||||
|
||||
window.onload = function(){
|
||||
_.defer(function(){
|
||||
setTimeout(function(){
|
||||
$scenarioRunner.run(jQuery(window.document.body));
|
||||
});
|
||||
}, 0);
|
||||
(onLoadDelegate||function(){})();
|
||||
};
|
||||
addCSS("../../css/angular-scenario.css");
|
||||
addScript("../../lib/underscore/underscore.js");
|
||||
addScript("../../lib/jquery/jquery-1.4.2.js");
|
||||
addScript("Runner.js");
|
||||
addScript("../Angular.js");
|
||||
|
|
|
|||
Loading…
Reference in a new issue