]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix tooltips in IE8 that doesn't implement Array#map. 837/head
authorKirill Lashuk <kirill.lashuk@gmail.com>
Mon, 27 Aug 2012 15:12:30 +0000 (18:12 +0300)
committerKirill Lashuk <kirill.lashuk@gmail.com>
Mon, 27 Aug 2012 15:12:30 +0000 (18:12 +0300)
Use $.map instead of Array#map that is not implemented in Internet Explorer 8.

vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js

index 22b95a4688c6c45740b8c8f6a237e7c0e3923ec3..3fc9aeb443631710572a69942553c2284319d521 100644 (file)
       },
       inheritable_classes : function (target) {
         var inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'noradius'],
-          filtered = target.attr('class').split(' ').map(function (el, i) {
+          filtered = $.map(target.attr('class').split(' '), function (el, i) {
             if ($.inArray(el, inheritables) !== -1) {
               return el;
             }