From 969553cedefad7c74324064e68aaa39d75d62084 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 13 Jan 2013 00:14:49 +0100 Subject: [PATCH] Clone hints array so that pre-render functions can modify it --- src/ol/view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/view.js b/src/ol/view.js index 6929a4ff48..27e0c9db1f 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -1,6 +1,7 @@ goog.provide('ol.View'); goog.provide('ol.ViewHint'); +goog.require('goog.array'); goog.require('ol.IView'); goog.require('ol.IView2D'); goog.require('ol.IView3D'); @@ -37,7 +38,7 @@ goog.inherits(ol.View, ol.Object); * @return {Array.} Hint. */ ol.View.prototype.getHints = function() { - return this.hints_; + return goog.array.clone(this.hints_); };