Skip to content

Commit 6715942

Browse files
committed
Hide internal methods
Closes #90
1 parent 176836c commit 6715942

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

core/src/main/scala/japgolly/scalajs/react/React.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,24 +168,24 @@ trait ComponentScope_A extends Object {
168168
}
169169

170170
trait ComponentScope_P[+Props] extends Object {
171-
@JSName("props") def _props: WrapObj[Props] with PropsMixedIn = js.native
171+
@JSName("props") private[react] def _props: WrapObj[Props] with PropsMixedIn = js.native
172172
}
173173

174174
trait ComponentScope_S[+State] extends Object {
175-
@JSName("state") def _state: WrapObj[State] = js.native
175+
@JSName("state") private[react] def _state: WrapObj[State] = js.native
176176
}
177177

178178
trait ComponentScope_SS[State] extends ComponentScope_S[State] {
179-
@JSName("setState") def _setState(s: WrapObj[State]): Unit = js.native
180-
@JSName("setState") def _setState(s: WrapObj[State], callback: UndefOr[JFn]): Unit = js.native
179+
@JSName("setState") private[react] def _setState(s: WrapObj[State]): Unit = js.native
180+
@JSName("setState") private[react] def _setState(s: WrapObj[State], callback: UndefOr[JFn]): Unit = js.native
181181
}
182182

183183
trait ComponentScope_B[+Backend] extends Object {
184184
def backend: Backend = js.native
185185
}
186186

187187
trait ComponentScope_PS[-Props, +State] extends Object {
188-
@JSName("getInitialState") def _getInitialState(s: WrapObj[Props]): WrapObj[State] = js.native
188+
@JSName("getInitialState") private[react] def _getInitialState(s: WrapObj[Props]): WrapObj[State] = js.native
189189
}
190190

191191
trait ComponentScope_M[+Node <: TopNode] extends Object {

doc/CHANGELOG-0.8.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* Upgrade to Scala.JS 0.6.1.
44
* Upgrade dependencies to versions built with Scala.JS 0.6.1.
5+
* Hide internal methods.
6+
57

68
# 0.8.1 ([commit log](https://github.com/japgolly/scalajs-react/compare/v0.8.0...v0.8.1))
79

0 commit comments

Comments
 (0)