[Pkg-javascript-commits] [leaflet-markercluster] 336/479: Fix some warnings from new uglify

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 6276021bd9bd9342d79e40d786bad0b6e76e7e4a
Author: danzel <danzel at localhost.geek.nz>
Date:   Mon Apr 15 10:11:49 2013 +1200

    Fix some warnings from new uglify
---
 build/build.js            | 2 +-
 src/MarkerClusterGroup.js | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build/build.js b/build/build.js
index 40cc948..b41c7e1 100644
--- a/build/build.js
+++ b/build/build.js
@@ -66,7 +66,7 @@ exports.uglify = function (code) {
 };
 
 exports.combineFiles = function (files) {
-	var content = '(function (window, undefined) {\n\n',
+	var content = '(function () {\n\n',
 		i,
 		len;
 	for (i = 0, len = files.length; i < len; i += 1) {
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index f27d5b6..a694dd6 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -355,8 +355,8 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 
 	//Overrides FeatureGroup.onRemove
 	onRemove: function (map) {
-		this._map.off('zoomend', this._zoomEnd, this);
-		this._map.off('moveend', this._moveEnd, this);
+		map.off('zoomend', this._zoomEnd, this);
+		map.off('moveend', this._moveEnd, this);
 
 		this._unbindEvents();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list