Removing comment out code and not needed todos

This commit is contained in:
Dave Leaver 2014-03-20 12:06:09 +13:00 committed by Vladimir Agafonkin
parent 498aef4c31
commit a071f489a5
2 changed files with 4 additions and 4 deletions

View File

@ -195,7 +195,6 @@ L.Map = L.Evented.extend({
},
stop: function () {
//TODO: Need to know if we are in an anim so we can fire zoomend
//zoomPan
L.Util.cancelAnimFrame(this._zoomPanFrame);
@ -203,13 +202,14 @@ L.Map = L.Evented.extend({
//PosAnimation
if (this._panAnim && this._panAnim._inProgress) {
this._panAnim.stop(); //This handles everything
this._panAnim.stop();
return;
}
//zoomAnimation
if (this._animatingZoom) {
this._stopAnimatedZoom();
return;
}
},
@ -495,10 +495,11 @@ L.Map = L.Evented.extend({
}
},
// private methods that modify map state
_resetView: function (center, zoom, preserveMapOffset, afterZoomAnim) {
//console.log('resetView', center, zoom);
var zoomChanged = (this._zoom !== zoom);
if (!afterZoomAnim) {

View File

@ -38,7 +38,6 @@ L.Map.include({
duration = 1000 * S * 0.8;
function frame() {
//console.log('frame');
var t = (Date.now() - start) / duration,
s = easeOut(t) * S;