This repository was archived by the owner on Dec 11, 2019. It is now read-only.
File tree 6 files changed +9
-6
lines changed
6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class MessageBox extends React.Component {
117
117
props . cancelId = messageBoxDetail . get ( 'cancelId' )
118
118
props . isActive = frameStateUtil . isFrameKeyActive ( currentWindow , tab . getIn ( [ 'frame' , 'key' ] ) )
119
119
120
- return Object . assign ( { } , ownProps , props )
120
+ return props
121
121
}
122
122
123
123
render ( ) {
Original file line number Diff line number Diff line change @@ -926,6 +926,7 @@ class Frame extends React.Component {
926
926
props . showMessageBox = tabMessageBoxState . hasMessageBoxDetail ( state , tabId )
927
927
928
928
// used in other functions
929
+ props . frameKey = ownProps . frameKey
929
930
props . urlBarFocused = frame && frame . getIn ( [ 'navbar' , 'urlbar' , 'focused' ] )
930
931
props . isAutFillContextMenu = contextMenu && contextMenu . get ( 'type' ) === 'autofill'
931
932
props . isSecure = frame . getIn ( [ 'security' , 'isSecure' ] )
@@ -954,7 +955,7 @@ class Frame extends React.Component {
954
955
props . tabUrl = tab && tab . get ( 'url' )
955
956
props . partitionNumber = frame . get ( 'partitionNumber' )
956
957
957
- return Object . assign ( { } , ownProps , props )
958
+ return props
958
959
}
959
960
960
961
render ( ) {
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ class BrowserAction extends React.Component {
66
66
67
67
const props = { }
68
68
// used in renderer
69
+ props . extensionId = ownProps . extensionId
69
70
props . title = browserActions . get ( 'title' )
70
71
props . text = browserActions . get ( 'text' )
71
72
props . color = browserActions . get ( 'color' )
@@ -75,7 +76,7 @@ class BrowserAction extends React.Component {
75
76
props . popupWindowSrc = currentWindow . getIn ( [ 'popupWindowDetail' , 'src' ] )
76
77
props . activeTabId = activeTabId
77
78
78
- return Object . assign ( { } , ownProps , props )
79
+ return props
79
80
}
80
81
81
82
render ( ) {
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ class MenuBar extends React.Component {
133
133
props . contextMenuDetail = ! ! contextMenuDetail
134
134
props . lastFocusedSelector = currentWindow . getIn ( [ 'ui' , 'menubar' , 'lastFocusedSelector' ] )
135
135
136
- return Object . assign ( { } , ownProps , props )
136
+ return props
137
137
}
138
138
139
139
render ( ) {
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ class MenuBarItem extends React.Component {
52
52
53
53
const props = { }
54
54
// used in renderer
55
+ props . index = ownProps . index
55
56
props . selected = ownProps . index === selectedIndex
56
57
props . label = template . get ( 'label' )
57
58
@@ -60,7 +61,7 @@ class MenuBarItem extends React.Component {
60
61
props . lastFocusedSelector = currentWindow . getIn ( [ 'ui' , 'menubar' , 'lastFocusedSelector' ] )
61
62
props . selectedIndex = selectedIndex
62
63
63
- return Object . assign ( { } , ownProps , props )
64
+ return props
64
65
}
65
66
66
67
render ( ) {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ class Navigator extends React.Component {
191
191
props . isNavigable = activeFrame && isNavigatableAboutPage ( getBaseUrl ( activeFrame . get ( 'location' ) ) )
192
192
props . activeTabId = activeTabId
193
193
194
- return Object . assign ( { } , ownProps , props )
194
+ return props
195
195
}
196
196
197
197
render ( ) {
You can’t perform that action at this time.
0 commit comments