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

Commit 00ce6e7

Browse files
committed
finish renaming session methods #106
1 parent 7286981 commit 00ce6e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/react/test/session.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def mount(component_klass, params = {})
1010
end
1111

1212
def instance
13-
@component ||= `#{native.to_n}._getOpalInstance.apply(#{native})`
13+
@instance ||= `#{native.to_n}._getOpalInstance.apply(#{native})`
1414
end
1515

1616
def native
@@ -23,11 +23,11 @@ def element
2323
end
2424

2525
def update_params(params)
26-
instance.set_props(params)
26+
native.set_props(params)
2727
end
2828

2929
def force_update!
30-
instance.force_update!
30+
native.force_update!
3131
end
3232

3333
def html

0 commit comments

Comments
 (0)