Module: Opal::Connect::ConnectPlugins::Form::InstanceMethods
- Defined in:
- lib/opal/connect/plugins/form.rb
Instance Method Summary collapse
Instance Method Details
#connect_event_instance_variables(_event, name, _selector) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/opal/connect/plugins/form.rb', line 16 def connect_event_instance_variables(_event, name, _selector) super # we only want to grab form params if we are submitting a form return unless FORM_EVENTS.include?(name) @params = {} # grab all of the form params! Native(@this.serialize_array).each do |item| @params[item[:name]] = item[:value] end end |