From 3c5f6ea13627a0d749a95ae76924b83605c4d8ce Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Fri, 27 Jun 2014 16:17:03 +0200 Subject: dist build --- dist/touch-imagelightbox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dist/touch-imagelightbox.js') diff --git a/dist/touch-imagelightbox.js b/dist/touch-imagelightbox.js index d0cb6bf..9726a0e 100644 --- a/dist/touch-imagelightbox.js +++ b/dist/touch-imagelightbox.js @@ -75,7 +75,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') ); }, @@ -332,4 +334,4 @@ return this; }; -})( jQuery, window, document ); \ No newline at end of file +})( jQuery, window, document ); -- cgit v1.2.3