aboutsummaryrefslogtreecommitdiff
path: root/dist/touch-imagelightbox.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/touch-imagelightbox.js')
-rw-r--r--dist/touch-imagelightbox.js4
1 files changed, 3 insertions, 1 deletions
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 );