]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Extra condition so it doesn't crash in IE8 4880/head
authorJb <jb@jblandry.info>
Wed, 2 Apr 2014 18:35:04 +0000 (14:35 -0400)
committerJb <jb@jblandry.info>
Wed, 2 Apr 2014 18:35:04 +0000 (14:35 -0400)
js/foundation/foundation.js

index 2a2767ae08ec92970cd61e731136bc7c2a038797..85ba2dd4b715c8856f5e00d7963ab185c61e420a 100644 (file)
       //    Media (String): Optional media query string for the CSS rule to be 
       //    nested under.
       add_custom_rule : function (rule, media) {
-        if (media === undefined) {
+        if (media === undefined && Foundation.stylesheet) {
           Foundation.stylesheet.insertRule(rule, Foundation.stylesheet.cssRules.length);
         } else {
           var query = Foundation.media_queries[media];