update: memory cleanup
MODIFY
www/BaseClass.js
www/BaseClass.js
@@ -16,6 +16,7 @@ BaseClass.prototype = {
Object.keys(vars).forEach(function(name) {
vars[name] = null;
+ delete vars[name];
});
},

MODIFY
www/Map.js
www/Map.js
@@ -531,6 +531,9 @@ Map.prototype.remove = function(callback) {
}
self.set('div', undefined);
self.trigger("remove");
+
+ self.clear();
+
exec(function() {
if (typeof callback === "function") {
callback.call(self);

update: memory cleanup