Skip to content

Commit bfec1e0

Browse files
committed
Never clone List objects
1 parent fcb909a commit bfec1e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GroupableCollection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var SELF = wb.datamodel.GroupableCollection = function WbDataModelGroupableColle
1515

1616
$.extend( SELF.prototype, {
1717
/**
18-
* Returns a copy of the collection items as list.
18+
* Returns the collection items as list.
1919
* @abstract
2020
*
2121
* @return {*[]}

src/List.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var SELF = wb.datamodel.List = util.inherit(
7171
* @inheritdoc
7272
*/
7373
toArray: function() {
74-
return this._items.slice();
74+
return this._items;
7575
},
7676

7777
/**

0 commit comments

Comments
 (0)