Use goog.events.Key
This commit is contained in:
@@ -33,7 +33,7 @@ ol.DeviceOrientation = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {?number}
|
* @type {goog.events.Key}
|
||||||
*/
|
*/
|
||||||
this.listenerKey_ = null;
|
this.listenerKey_ = null;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -196,7 +196,7 @@ ol.Map = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {?number}
|
* @type {goog.events.Key}
|
||||||
*/
|
*/
|
||||||
this.viewPropertyListenerKey_ = null;
|
this.viewPropertyListenerKey_ = null;
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -118,7 +118,7 @@ ol.Object.getGetterName = function(key) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Object} obj Object.
|
* @param {ol.Object} obj Object.
|
||||||
* @return {Object.<string, ?number>} Listeners.
|
* @return {Object.<string, goog.events.Key>} Listeners.
|
||||||
*/
|
*/
|
||||||
ol.Object.getListeners = function(obj) {
|
ol.Object.getListeners = function(obj) {
|
||||||
return obj[ol.ObjectProperty.BINDINGS] ||
|
return obj[ol.ObjectProperty.BINDINGS] ||
|
||||||
@@ -235,7 +235,7 @@ ol.Object.prototype.notifyInternal_ = function(key) {
|
|||||||
* @param {Function} listener The listener function.
|
* @param {Function} listener The listener function.
|
||||||
* @param {Object=} opt_scope Object is whose scope to call
|
* @param {Object=} opt_scope Object is whose scope to call
|
||||||
* the listener.
|
* the listener.
|
||||||
* @return {?number} Unique key for the listener.
|
* @return {goog.events.Key} Unique key for the listener.
|
||||||
*/
|
*/
|
||||||
ol.Object.prototype.on = function(type, listener, opt_scope) {
|
ol.Object.prototype.on = function(type, listener, opt_scope) {
|
||||||
return goog.events.listen(this, type, listener, false, opt_scope);
|
return goog.events.listen(this, type, listener, false, opt_scope);
|
||||||
@@ -248,7 +248,7 @@ ol.Object.prototype.on = function(type, listener, opt_scope) {
|
|||||||
* @param {Function} listener The listener function.
|
* @param {Function} listener The listener function.
|
||||||
* @param {Object=} opt_scope Object is whose scope to call
|
* @param {Object=} opt_scope Object is whose scope to call
|
||||||
* the listener.
|
* the listener.
|
||||||
* @return {?number} Unique key for the listener.
|
* @return {goog.events.Key} Unique key for the listener.
|
||||||
*/
|
*/
|
||||||
ol.Object.prototype.once = function(type, listener, opt_scope) {
|
ol.Object.prototype.once = function(type, listener, opt_scope) {
|
||||||
return goog.events.listenOnce(this, type, listener, false, opt_scope);
|
return goog.events.listenOnce(this, type, listener, false, opt_scope);
|
||||||
|
|||||||
Reference in New Issue
Block a user