clearsightstudio/ProMotion — pull request #383 by robertjwhitney (2014-01-09 22:13:40+00:00)
Title: re-bind submit after update_table_data is called

When calling update_table_data, Formotion submit buttons added in the new data do not fire the on_submit action. This commit adds a fix and tests.

eg.

```ruby
class SomeFormScreen < PM::FormotionScreen
def table_data
@table_data ||= {}
end

def on_load
@table_data = {
sections: [
{
title: 'My Test Form'
rows: [{
title: "Update",
type: :submit
}]
}
]
}
update_table_data
end

def on_submit(_form)
# Does not fire
PM.logger.debug('Fires')
end
end
```