diff --git a/src/Container.js b/src/Container.js index 86db3ae4..36466ebd 100644 --- a/src/Container.js +++ b/src/Container.js @@ -181,9 +181,9 @@ * }); */ find: function(selector) { - // protecting _findByType to prevent user from accidentally adding + // protecting _generalFind to prevent user from accidentally adding // second argument and getting unexpected `findOne` result - return this._findByType(selector, false); + return this._generalFind(selector, false); }, /** * return a first node from `find` method @@ -204,10 +204,10 @@ * }) */ findOne: function(selector) { - var result = this._findByType(selector, true); + var result = this._generalFind(selector, true); return result.length > 0 ? result[0] : undefined; }, - _findByType: function(selector, findOne) { + _generalFind: function(selector, findOne) { var retArr = []; if (typeof selector === 'string') { diff --git a/src/shapes/Text.js b/src/shapes/Text.js index 25481172..17863d09 100644 --- a/src/shapes/Text.js +++ b/src/shapes/Text.js @@ -363,14 +363,14 @@ var lineWidth = this._getTextWidth(line); if (fixedWidth && lineWidth > maxWidth) { /* - * if width is fixed and line does not fit entirely - * break the line into multiple fitting lines - */ + * if width is fixed and line does not fit entirely + * break the line into multiple fitting lines + */ while (line.length > 0) { /* - * use binary search to find the longest substring that - * that would fit in the specified width - */ + * use binary search to find the longest substring that + * that would fit in the specified width + */ var low = 0, high = line.length, match = '', @@ -414,9 +414,9 @@ (fixedHeight && currentHeightPx + lineHeightPx > maxHeightPx) ) { /* - * stop wrapping if wrapping is disabled or if adding - * one more line would overflow the fixed height - */ + * stop wrapping if wrapping is disabled or if adding + * one more line would overflow the fixed height + */ break; } line = line.slice(low);