Use goog.events.Key

This commit is contained in:
Tom Payne
2013-07-22 12:27:30 +02:00
parent 368194f293
commit b6319c9a68
3 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ ol.DeviceOrientation = function(opt_options) {
/**
* @private
* @type {?number}
* @type {goog.events.Key}
*/
this.listenerKey_ = null;

View File

@@ -196,7 +196,7 @@ ol.Map = function(options) {
/**
* @private
* @type {?number}
* @type {goog.events.Key}
*/
this.viewPropertyListenerKey_ = null;

View File

@@ -118,7 +118,7 @@ ol.Object.getGetterName = function(key) {
/**
* @param {ol.Object} obj Object.
* @return {Object.<string, ?number>} Listeners.
* @return {Object.<string, goog.events.Key>} Listeners.
*/
ol.Object.getListeners = function(obj) {
return obj[ol.ObjectProperty.BINDINGS] ||
@@ -235,7 +235,7 @@ ol.Object.prototype.notifyInternal_ = function(key) {
* @param {Function} listener The listener function.
* @param {Object=} opt_scope Object is whose scope to call
* 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) {
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 {Object=} opt_scope Object is whose scope to call
* 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) {
return goog.events.listenOnce(this, type, listener, false, opt_scope);