[TASK] CGL - Optimize returns and unnecessary math

This commit is contained in:
Xaver Maierhofer 2016-05-22 23:32:05 +02:00 committed by Milan Pässler
parent c7b58d5743
commit c9458ffcae
3 changed files with 5 additions and 11 deletions

View file

@ -73,7 +73,7 @@ define(["leaflet", "rbush"],
return [x, y, x + width, y + height];
}
var c = L.TileLayer.Canvas.extend({
return L.TileLayer.Canvas.extend({
onAdd: function (map) {
L.TileLayer.Canvas.prototype.onAdd.call(this, map);
if (this.data) {
@ -235,6 +235,4 @@ define(["leaflet", "rbush"],
}).forEach(drawLabel);
}
});
return c;
});