Bug 1261505 - Use consistent syntax for prototype methods; r=jsantell

All the other methods use the style

  {
    myMethod() { ... }
  }

while these two methods use

  {
    myMethod: function () { ... }
  }

For consistency, we should use the common style here.

MozReview-Commit-ID: 5rg8uPoULyN
This commit is contained in:
Nick Fitzgerald 2016-04-01 19:03:47 -07:00
Родитель 8092fe6da1
Коммит 9260975b8f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -369,7 +369,7 @@ const Tree = module.exports = createClass({
* *
* @param {Object} item * @param {Object} item
*/ */
_focus: function (item) { _focus(item) {
if (this.props.onFocus) { if (this.props.onFocus) {
this.props.onFocus(item); this.props.onFocus(item);
} }
@ -378,7 +378,7 @@ const Tree = module.exports = createClass({
/** /**
* Sets the state to have no focused item. * Sets the state to have no focused item.
*/ */
_onBlur: function () { _onBlur() {
this._focus(undefined); this._focus(undefined);
}, },