Fix location of call to goog.getUid, thanks @elemoine
This commit is contained in:
+6
-6
@@ -48,12 +48,6 @@ ol.ObjectEventType = {
|
|||||||
ol.ObjectEvent = function(type, key) {
|
ol.ObjectEvent = function(type, key) {
|
||||||
goog.base(this, type);
|
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.
|
* The name of the property whose value is changing.
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -121,6 +115,12 @@ ol.ObjectAccessor.prototype.transform = function(from, to) {
|
|||||||
ol.Object = function(opt_values) {
|
ol.Object = function(opt_values) {
|
||||||
goog.base(this);
|
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
|
* @private
|
||||||
* @type {Object.<string, *>}
|
* @type {Object.<string, *>}
|
||||||
|
|||||||
Reference in New Issue
Block a user