From 7db06b61deafca1738de687a852477e08bf8c098 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 27 Mar 2014 22:22:54 +0100 Subject: [PATCH] Fix location of call to goog.getUid, thanks @elemoine --- src/ol/object.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ol/object.js b/src/ol/object.js index 8894e75241..1c27959761 100644 --- a/src/ol/object.js +++ b/src/ol/object.js @@ -48,12 +48,6 @@ ol.ObjectEventType = { ol.ObjectEvent = function(type, key) { goog.base(this, type); - // Call goog.getUid to ensure that the order of objects' ids is the same as - // the order in which they were created. This also helps to ensure that - // object properties are always added in the same order, which helps many - // JavaScript engines generate faster code. - goog.getUid(this); - /** * The name of the property whose value is changing. * @type {string} @@ -121,6 +115,12 @@ ol.ObjectAccessor.prototype.transform = function(from, to) { ol.Object = function(opt_values) { goog.base(this); + // Call goog.getUid to ensure that the order of objects' ids is the same as + // the order in which they were created. This also helps to ensure that + // object properties are always added in the same order, which helps many + // JavaScript engines generate faster code. + goog.getUid(this); + /** * @private * @type {Object.}