aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorMisko Hevery2010-10-19 15:34:58 -0700
committerMisko Hevery2010-10-19 15:56:53 -0700
commit01c7abab35dbdee711c54875424b388f8631a3c0 (patch)
tree00a4adee508a9e854881f7ecea5e779fb6d48a80 /Rakefile
parente7e894a2e36e042be6d62af56b0f3126f4e4fc77 (diff)
downloadangular.js-01c7abab35dbdee711c54875424b388f8631a3c0.tar.bz2
Fix browser triggering in scenario to always do native events.
- Also fixed angular.suffix for scenarios - refactored click() to browserTrigger() - Fixed Rakefile with CSS and jQuery
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 8d3e50c8..70425603 100644
--- a/Rakefile
+++ b/Rakefile
@@ -53,7 +53,7 @@ end
desc 'Compile Scenario'
task :compile_scenario do
-
+
deps = [
'lib/jquery/jquery-1.4.2.js',
'src/scenario/angular.prefix',
@@ -66,7 +66,7 @@ task :compile_scenario do
File.open('angular-scenario.js', 'w') do |f|
f.write(%x{#{concat}})
- f.write(gen_css('css/angular.css'))
+ f.write(gen_css('css/angular.css') + "\n")
f.write(gen_css('css/angular-scenario.css'))
end
end
@@ -234,7 +234,8 @@ def gen_css(cssFile, minify = false)
end
#escape for js
- css.gsub! /'/, "\\'"
+ css.gsub! /\\/, "\\\\\\"
+ css.gsub! /'/, "\\\\'"
css.gsub! /\n/, "\\n"
return %Q{document.write('<style type="text/css">#{css}</style>');}