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

Commit bf79d4e

Browse files
committed
spelling and clarity
1 parent e2d596d commit bf79d4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/react/component/api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ def set_state!(state, &block)
3232
def set_or_replace_state_or_prop(state_or_prop, method, &block)
3333
raise "No native ReactComponent associated" unless @native
3434
`var state_prop_n = #{state_or_prop.shallow_to_n}`
35-
# the state object is initalized when the ruby component is instanciated
35+
# the state object is initalized when the ruby component is instantiated
3636
# this is detected by self.native.__opalInstanceInitializedState
37-
# which is set in the netive component constructor in react/api.rb
37+
# which is set in the native component constructor in react/api.rb
3838
# the setState update callback is not called when initalizing initial state
3939
if block
4040
%x{
4141
if (#{@native}.__opalInstanceInitializedState === true) {
4242
#{@native}[method](state_prop_n, function(){
43-
#{block.call}
43+
block.$call();
4444
});
4545
} else {
4646
for (var sp in state_prop_n) {

0 commit comments

Comments
 (0)