From 9260975b8f9a9ee8d6171132f69e77782c680266 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 1 Apr 2016 19:03:47 -0700 Subject: [PATCH] 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 --- devtools/client/shared/components/tree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/client/shared/components/tree.js b/devtools/client/shared/components/tree.js index bb6cfb38912f..e16a16523f79 100644 --- a/devtools/client/shared/components/tree.js +++ b/devtools/client/shared/components/tree.js @@ -369,7 +369,7 @@ const Tree = module.exports = createClass({ * * @param {Object} item */ - _focus: function (item) { + _focus(item) { if (this.props.onFocus) { this.props.onFocus(item); } @@ -378,7 +378,7 @@ const Tree = module.exports = createClass({ /** * Sets the state to have no focused item. */ - _onBlur: function () { + _onBlur() { this._focus(undefined); },