Modify small code
MODIFY
www/BaseClass.js
www/BaseClass.js
@@ -19,7 +19,7 @@ BaseClass.prototype = {
},
get: function(key) {
- return this[VARS_FIELD].hasOwnProperty(key) ? this[VARS_FIELD][key] : null;
+ return this[VARS_FIELD].hasOwnProperty(key) ? this[VARS_FIELD][key] : undefined;
},
set: function(key, value, noNotify) {
@@ -28,7 +28,7 @@ BaseClass.prototype = {
this[VARS_FIELD][key] = value;
if (!noNotify && prev !== value) {
- this.trigger(key + '_changed', prev, value);
+ this.trigger(key + '_changed', prev, value, key);
}
return this;

MODIFY
www/HtmlInfoWindow.js
www/HtmlInfoWindow.js
@@ -242,7 +242,6 @@ HTMLInfoWindow.prototype.open = function(marker) {
marker.on(event.INFO_CLOSE, self.close.bind(self));
self.set("marker", marker);
map.set("active_marker_id", marker.getId());
- self.on(event.INFO_OPEN);
self.trigger.call(self, "infoWindowAnchor_changed");
});
};

Modify small code