lib/docapurl/browser.rb in docapurl-0.2.0 vs lib/docapurl/browser.rb in docapurl-0.2.1

- old
+ new

@@ -76,11 +76,15 @@ end private def set_callback(name, options) - the_funcion = options.delete name - the_funcion.call(self) unless the_funcion.nil? + the_function = options.delete name + if the_function.nil? + the_function = options.delete name.to_sym + end + + the_function.call(self) unless the_function.nil? end class << self def cap(url, path = nil, browser_options = {}, cap_options = {})