Skip to content

Commit

Permalink
sigh; more sc_super() rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Erich Ocean committed Jul 14, 2008
1 parent 6f98b1d commit bd82e6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sproutcore/build_tools/resource_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ def rewrite_inline_code(line, filename)
line = line.gsub(/["']@@.*["']\s*?:\s*?["'].*["'],\s*$/,'')

else
if line.match(/sc_super\(.+\)/)
puts "\nWARNING: Calling sc_super() with arguments is DEPRECATED. Please use sc_super() only.\n\n"
line = line.gsub(/sc_super\((.+)\)/, 'arguments.callee.base.apply(this, \1)')
else
if line.match(/sc_super\(\s*\)/)
line = line.gsub(/sc_super\(\s*\)/, 'arguments.callee.base.apply(this,arguments)')
elsif line.match(/sc_super\(.+?\)/)
puts "\nWARNING: Calling sc_super() with arguments is DEPRECATED. Please use sc_super() only.\n\n"
line = line.gsub(/sc_super\((.+?)\)/, 'arguments.callee.base.apply(this, \1)')
end
end

Expand Down

0 comments on commit bd82e6d

Please sign in to comment.