Minor dependency updates
[yaffs-website] / vendor / mehrpadin / superfish / sftouchscreen.js
index 5fb46ae740f4409de3085be70fe212f59c56cc53..8364cf4199f6bb7a5c3154f6e8c83a3a6252fd89 100644 (file)
           if (item.hasClass('sf-clicked')){
             // Depending on the preferred behaviour, either proceed to the URL.
             if (options.behaviour == 0){
-              window.location = item.attr('href');
+              url = item.attr('href');
+              if (typeof(url) != 'undefined'){
+                window.location = url;
+              }
             }
             // or collapse the sub-menu.
             else if (options.behaviour == 1 || options.behaviour == 2){