aboutsummaryrefslogtreecommitdiff
path: root/dist/touch-imagelightbox.js
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-06-27 16:17:03 +0200
committerVictor Häggqvist <[email protected]>2014-06-27 16:17:03 +0200
commit3c5f6ea13627a0d749a95ae76924b83605c4d8ce (patch)
treefe496d305359f7c295409de8e06cd4e44a03d3ff /dist/touch-imagelightbox.js
parent84c94789f5011d000e9d2f810aed4fd0b63cca0d (diff)
dist buildv0.1.5
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 );