Close #2606 and address other FF 3.x deficiencies.

This commit is contained in:
Tray Torrance 2012-01-13 21:46:37 -08:00
parent 9dbe644b25
commit ca07f5b9a3
2 changed files with 11 additions and 4 deletions

View file

@ -65,6 +65,17 @@
- if rtl?
= include_stylesheets :rtl, :media => 'all'
:javascript
// Support for older browsers
if(Array.isArray === undefined) {
Array.isArray = function (arg) {
return Object.prototype.toString.call(arg) == '[object Array]';
};
}
if ((window.history) && (window.history.pushState === undefined)) {
window.history.pushState = function() { };
}
= csrf_meta_tag
<!--[if IE]>
= javascript_include_tag "/javascripts/ie.js"

View file

@ -1,7 +1,3 @@
document.createElement('header');
document.createElement('footer');
// IE 9 work-around for vendor/backbone.js
if ((window.history) && (document.documentMode == 9)) {
window.history.pushState = function() { };
}