Combing definitions of #disabled?

This commit is contained in:
Bryan Helmkamp 2008-10-13 20:56:54 -04:00
parent d304564283
commit 8c5216e3ae
1 changed files with 1 additions and 5 deletions

View File

@ -47,7 +47,7 @@ module Webrat
end
def disabled?
!@element["disabled"].nil? && @element["disabled"] != 'false'
@element.attributes.has_key?("disabled") && @element["disabled"] != 'false'
end
def raise_error_if_disabled
@ -60,10 +60,6 @@ module Webrat
param_parser.parse_query_parameters("#{name}=#{value}")
end
def disabled?
@element.attributes.has_key? "disabled"
end
def set(value)
@value = value
end