lib/bad_browser.rb
# Helpers for Javascript generation; parameters that are used more than
# once (like in an if statement) will usually have their own helper
Helpers for Javascript generation; parameters that are used more than
once (like in an if statement) will usually have their own helper
Helpers for Javascript generation ; parameters that are used more than once ( like in an if statement ) will usually have their own helper
def read_param(key)
      return nil unless value = params[key] || params[SHORT_NAMES[key]]
      value.strip!
      value.empty? ? nil : value
    end
def read_param ( key ) return nil unless value = params [ key ] || params [ SHORT_NAMES [ key ] ] value . strip! value . empty? ? nil : value end
Helpers for Javascript generation; parameters that are used more than
once (like in an if statement) will usually have their own helper
Helpers for Javascript generation ; parameters that are used more than once ( like in an if statement ) will usually have their own helper
key