From 80a0a484b727e9fbe6b0ee609f80e10e5e158683 Mon Sep 17 00:00:00 2001 From: mehrpadin Date: Tue, 30 May 2017 14:00:18 +0100 Subject: [PATCH] Applying pull requests from the master branch. --- sfsmallscreen.js | 12 ++++++------ sftouchscreen.js | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/sfsmallscreen.js b/sfsmallscreen.js index 6a64473..9765fed 100644 --- a/sfsmallscreen.js +++ b/sfsmallscreen.js @@ -81,7 +81,7 @@ for (var b = 0; b < parent.length; b++){ var item = parent.eq(b), - path = item.is('a') ? item.attr('href') : '', + path = (item.is('a') && !!item.attr('href')) ? item.attr('href') : '', // Class names modification. itemClone = item.clone(), classes = (options.hyperlinkClasses) ? ((options.excludeClass_hyperlink && itemClone.hasClass(options.excludeClass_hyperlink)) ? itemClone.removeClass(options.excludeClass_hyperlink).attr('class') : itemClone.attr('class')) : '', @@ -92,7 +92,7 @@ } classes = (classes) ? ' class="' + classes + '"' : ''; //