From 71931e2ef1cd028654537b6b9ed8f9cfc8bc54f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 13 May 2012 19:55:44 -0300 Subject: Remove `:mouseover` option from `image_tag` helper. --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 3ba135d3d5..8368ebfbca 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -363,9 +363,6 @@ module ActionView # * :size - Supplied as "{Width}x{Height}", so "30x45" becomes # width="30" and height="45". :size will be ignored if the # value is not in the correct format. - # * :mouseover - Set an alternate image to be used when the onmouseover - # event is fired, and sets the original image to be replaced onmouseout. - # This can be used to implement an easy image toggle that fires on onmouseover. # # ==== Examples # image_tag("icon") # => @@ -380,10 +377,6 @@ module ActionView # Icon # image_tag("/icons/icon.gif", :class => "menu_icon") # => # Icon - # image_tag("mouse.png", :mouseover => "/assets/mouse_over.png") # => - # Mouse - # image_tag("mouse.png", :mouseover => image_path("mouse_over.png")) # => - # Mouse def image_tag(source, options={}) options = options.symbolize_keys @@ -397,11 +390,6 @@ module ActionView options[:width], options[:height] = size.split("x") if size =~ %r{^\d+x\d+$} end - if mouseover = options.delete(:mouseover) - options[:onmouseover] = "this.src='#{path_to_image(mouseover)}'" - options[:onmouseout] = "this.src='#{src}'" - end - tag("img", options) end -- cgit v1.2.3