aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/touch-imagelightbox.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/touch-imagelightbox.js b/js/touch-imagelightbox.js
index db4b60c..f5bbe2f 100644
--- a/js/touch-imagelightbox.js
+++ b/js/touch-imagelightbox.js
@@ -72,7 +72,9 @@
inProgress = false,
isTargetValid = function( element ) {
+ /*jshint -W044*/
options.regexValidObject = new RegExp("(\.("+options.allowedTypes+")$)");
+ /*jshint +W044*/
return $( element ).prop( 'tagName' ).toLowerCase() === 'a' && options.regexValidObject.test($(element).attr('href') );
},
@@ -329,4 +331,4 @@
return this;
};
-})( jQuery, window, document ); \ No newline at end of file
+})( jQuery, window, document );