mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-04 08:02:05 +02:00
remove DistanceGrid#replaceObject (not needed)
This commit is contained in:
@@ -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) {
|
eachObject: function (fn, context) {
|
||||||
var i, j, k, len, row, cell, removed,
|
var i, j, k, len, row, cell, removed,
|
||||||
grid = this._grid;
|
grid = this._grid;
|
||||||
|
|||||||
Reference in New Issue
Block a user