[Pkg-javascript-commits] [leaflet-markercluster] 152/479: remove DistanceGrid#replaceObject (not needed)
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:23 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 79737cdab5aa3162d53b58690fcff7dc36598831
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date: Thu Aug 9 17:02:37 2012 +0300
remove DistanceGrid#replaceObject (not needed)
---
src/DistanceGrid.js | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/DistanceGrid.js b/src/DistanceGrid.js
index d9b1f28..f1c699e 100644
--- a/src/DistanceGrid.js
+++ b/src/DistanceGrid.js
@@ -42,20 +42,6 @@ L.DistanceGrid.prototype = {
}
},
- replaceObject: function (newObj, oldObj) {
- var cell = oldObj._dGridCell,
- i, len;
-
- for (i = 0, len = cell.length; i < len; i++) {
- if (cell[i] === oldObj) {
- cell.splice(i, 1, newObj);
- newObj._dGridCell = oldObj._dGridCell;
- newObj._dGridPoint = oldObj._dGridPoint;
- break;
- }
- }
- },
-
eachObject: function (fn, context) {
var i, j, k, len, row, cell, removed,
grid = this._grid;
--
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