Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
states can now be defined call backs
Browse files Browse the repository at this point in the history
  • Loading branch information
catmando committed Jun 1, 2015
1 parent c03113d commit d1e122a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal-react/component.rb
Expand Up @@ -145,7 +145,7 @@ def watch(value, &on_change)
end

def define_state(*args, &block)
React::State.initialize_states(self.class, self.class.define_state(*args, &block))
React::State.initialize_states(self, self.class.define_state(*args, &block))
end

def _render_wrapper
Expand Down

0 comments on commit d1e122a

Please sign in to comment.