Avoid use of goog.array.clone with arrays

This commit is contained in:
Tim Schaub
2015-01-15 12:39:36 -07:00
parent c23ae78978
commit 06dc0902c6
5 changed files with 7 additions and 8 deletions

View File

@@ -260,7 +260,7 @@ goog.exportProperty(
* @return {Array.<number>} Hint.
*/
ol.View.prototype.getHints = function() {
return goog.array.clone(this.hints_);
return this.hints_.slice();
};