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.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/touch-imagelightbox.js b/dist/touch-imagelightbox.js
index 7113c3c..d0cb6bf 100644
--- a/dist/touch-imagelightbox.js
+++ b/dist/touch-imagelightbox.js
@@ -1,4 +1,4 @@
-/*! touch-imagelightbox - v0.1.0 - 2014-06-24
+/*! touch-imagelightbox - v0.1.0 - 2014-06-27
* https://github.com/victorhaggqvist/touch-imagelightbox
* Copyright (c) 2014 Osvaldas Valutis (www.osvaldas.info); Licensed MIT
* Contributors Victor Häggqvist (victorhaggqvist.com) */
@@ -75,8 +75,8 @@
inProgress = false,
isTargetValid = function( element ) {
- this.regexValidObject = /(\.(' + options.allowedTypes + ')$)/;
- return $( element ).prop( 'tagName' ).toLowerCase() === 'a' && this.regexValidObject.test($(element).attr('href') );
+ options.regexValidObject = new RegExp("(\.("+options.allowedTypes+")$)");
+ return $( element ).prop( 'tagName' ).toLowerCase() === 'a' && options.regexValidObject.test($(element).attr('href') );
},
setImage = function() {
@@ -332,4 +332,4 @@
return this;
};
-})( jQuery, window, document );
+})( jQuery, window, document ); \ No newline at end of file