Clone hints array so that pre-render functions can modify it
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
goog.provide('ol.View');
|
goog.provide('ol.View');
|
||||||
goog.provide('ol.ViewHint');
|
goog.provide('ol.ViewHint');
|
||||||
|
|
||||||
|
goog.require('goog.array');
|
||||||
goog.require('ol.IView');
|
goog.require('ol.IView');
|
||||||
goog.require('ol.IView2D');
|
goog.require('ol.IView2D');
|
||||||
goog.require('ol.IView3D');
|
goog.require('ol.IView3D');
|
||||||
@@ -37,7 +38,7 @@ goog.inherits(ol.View, ol.Object);
|
|||||||
* @return {Array.<number>} Hint.
|
* @return {Array.<number>} Hint.
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getHints = function() {
|
ol.View.prototype.getHints = function() {
|
||||||
return this.hints_;
|
return goog.array.clone(this.hints_);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user