update build and changelog

This commit is contained in:
Vladimir Agafonkin 2012-09-11 15:28:28 +03:00
parent 60444c20bf
commit 7b0deafb75
3 changed files with 10 additions and 2 deletions

View File

@ -16,6 +16,7 @@ An in-progress version being developed on the master branch.
* Added optional `delta` argument to `Map` `zoomIn` and `zoomOut` (1 by default).
* Improved scroll wheel zoom to be more responsive.
* Improved vectors updating/removing on Canvas backend even more (by [@danzel](https://github.com/danzel)). [#961](https://github.com/CloudMade/Leaflet/pull/961)
* Added `isValid` method to `LatLngBounds` and `Bounds` (by [@domoritz](https://github.com/domoritz)). [#972](https://github.com/CloudMade/Leaflet/pull/972)
### Bugfixes

9
dist/leaflet-src.js vendored
View File

@ -609,8 +609,11 @@ L.Bounds = L.Class.extend({
yIntersects = (max2.y >= min.y) && (min2.y <= max.y);
return xIntersects && yIntersects;
}
},
isValid: function () {
return !!(this.min && this.max);
}
});
L.bounds = function (a, b) { // (Bounds) or (Point, Point) or (Point[])
@ -1064,6 +1067,10 @@ L.LatLngBounds = L.Class.extend({
return this._southWest.equals(bounds.getSouthWest()) &&
this._northEast.equals(bounds.getNorthEast());
},
isValid: function () {
return !!(this._southWest && this._northEast);
}
});

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long