diff options
author | Victor Häggqvist <[email protected]> | 2014-06-27 16:10:15 +0200 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2014-06-27 16:10:15 +0200 |
commit | 5e95e03ea0e14a4781a76b16bc8ec7f5c2ab3297 (patch) | |
tree | f3f76f7a51fbb43a8efa4f8acc6b33b28b6ff8e5 /dist/touch-imagelightbox.js | |
parent | c4e9005ed34c02e9bcd0503f927421e8bbb94685 (diff) |
update dist
Diffstat (limited to '')
-rw-r--r-- | dist/touch-imagelightbox.js | 8 |
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 |