X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d9054cfe29efeb615237a143ca620c53af37288f..a35cff243ea709059a4b268494a8f5cf1c744b85:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e02949f58..352ec9f8a 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -5,11 +5,20 @@ //= require openlayers //= require i18n/translations //= require globals +//= require compat //= require browse //= require export //= require map //= require menu +if ( !Array.prototype.forEach ) { + Array.prototype.forEach = function(fn, scope) { + for(var i = 0, len = this.length; i < len; ++i) { + fn.call(scope || this, this[i], i, this); + } + } +} + /* * Called as the user scrolls/zooms around to aniplate hrefs of the * view tab and various other links