Use augment.js for improved cross browser compatibility

Remove the quick hack for that I added for Array.forEach and pull
in augment.js instead to add missing JS methods to older browsers.
This commit is contained in:
Tom Hughes 2012-08-29 12:29:47 +01:00
parent a35cff243e
commit 7b626f31be
3 changed files with 398 additions and 11 deletions

View file

@ -2,10 +2,10 @@
//= require jquery_ujs
//= require jquery.autogrowtextarea
//= require jquery.timers
//= require augment
//= require openlayers
//= require i18n/translations
//= require globals
//= require compat
//= require browse
//= require export
//= require map

View file

@ -1,10 +0,0 @@
/*
* Implement Array.forEach for browsers which don't have it
*/
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);
}
}
}