Skip to content

Commit

Permalink
Fix for ticket #125: generate unique stylesheets and javascript urls
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencepit authored and Erich Ocean committed Sep 30, 2008
1 parent 639211b commit f016d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sproutcore/helpers/static_helper.rb
Expand Up @@ -36,7 +36,7 @@ def stylesheets_for_client(bundle_name = nil, opts = {})
end

# Convert to HTML and return
urls = urls.map do |url|
urls = urls.uniq.map do |url|
if include_method == :import
%( @import url('#{url}');)
else
Expand Down Expand Up @@ -77,7 +77,7 @@ def javascripts_for_client(bundle_name = nil, opts = {})
end

# Convert to HTML and return
urls = urls.map do |url|
urls = urls.uniq.map do |url|
%( <script type="text/javascript" src="#{url}"></script>)
end

Expand Down

0 comments on commit f016d78

Please sign in to comment.