From 619698f6fbffa5702addca208d76181b5cf19d88 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 31 Jan 2013 17:32:16 +0200 Subject: [PATCH] minor whitespace cleanup --- src/core/Events.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/Events.js b/src/core/Events.js index 6a7349ad..af05c9d1 100644 --- a/src/core/Events.js +++ b/src/core/Events.js @@ -9,9 +9,10 @@ L.Mixin = {}; L.Mixin.Events = { addEventListener: function (types, fn, context) { // (String, Function[, Object]) or (Object[, Object]) + var events = this[key] = this[key] || {}, - type, i, len, evt, - contextId, objKey, objLenKey, eventsObj; + type, i, len, evt, + contextId, objKey, objLenKey, eventsObj; // types can be a map of types/handlers if (typeof types === 'object') { @@ -60,7 +61,7 @@ L.Mixin.Events = { hasEventListeners: function (type) { // (String) -> Boolean return (key in this) && - (((type in this[key]) && this[key][type].length > 0) || + (((type in this[key]) && this[key][type].length > 0) || (this[key][type + '_idx_len'] > 0)); },