From ca07f5b9a36a5406a3876d614356712b1f83da9e Mon Sep 17 00:00:00 2001 From: Tray Torrance Date: Fri, 13 Jan 2012 21:46:37 -0800 Subject: [PATCH] Close #2606 and address other FF 3.x deficiencies. --- app/views/layouts/application.html.haml | 11 +++++++++++ public/javascripts/ie.js | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 6a5d085bf..cc6ddcad8 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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