Skip to content

Commit d55379c

Browse files
committed
Merge pull request #58 from wmde/multiTermClone
Do not clone in MultiTerm
2 parents e573208 + c66f8a5 commit d55379c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/MultiTerm.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $.extend( SELF.prototype, {
5454
* @return {string[]}
5555
*/
5656
getTexts: function() {
57-
return $.merge( [], this._texts );
57+
return this._texts;
5858
},
5959

6060
/**
@@ -83,14 +83,12 @@ $.extend( SELF.prototype, {
8383
return false;
8484
}
8585

86-
var otherTexts = multiTerm.getTexts();
87-
88-
if( this._texts.length !== otherTexts.length ) {
86+
if( this._texts.length !== multiTerm._texts.length ) {
8987
return false;
9088
}
9189

9290
for( var i = 0; i < this._texts.length; i++ ) {
93-
if( $.inArray( this._texts[i], otherTexts ) === -1 ) {
91+
if( $.inArray( this._texts[i], multiTerm._texts ) === -1 ) {
9492
return false;
9593
}
9694
}

0 commit comments

Comments
 (0)