Avoid errors in stock JS

This commit is contained in:
fkloft
2013-10-19 15:14:56 +02:00
parent de621000ce
commit 53874ab887
3 changed files with 17 additions and 1 deletions

View File

@ -602,3 +602,12 @@ window.clampLatLng = function(latlng) {
window.clampLatLngBounds = function(bounds) {
return new L.LatLngBounds ( clampLatLng(bounds.getSouthWest()), clampLatLng(bounds.getNorthEast()) );
}
// avoid error in stock JS
if(goog && goog.style) {
goog.style.showElement = function(a, b) {
if(a && a.style)
a.style.display = b ? "" : "none"
};
}