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

Commit fb65e20

Browse files
committed
component is a clearer name
1 parent 0700a46 commit fb65e20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/react/component/props_wrapper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module React
22
module Component
33
class PropsWrapper
4-
attr_reader :owner
4+
attr_reader :component
55

66
def self.define_param(name, param_type)
77
if param_type == Observable
@@ -41,8 +41,8 @@ def self.define_param(name, param_type)
4141
end
4242
end
4343

44-
def initialize(owner)
45-
@owner = owner
44+
def initialize(component)
45+
@component = component
4646
end
4747

4848
def [](prop)
@@ -52,7 +52,7 @@ def [](prop)
5252
private
5353

5454
def props
55-
owner.props
55+
component.props
5656
end
5757

5858
def value_for(name)

0 commit comments

Comments
 (0)