From 5e95e03ea0e14a4781a76b16bc8ec7f5c2ab3297 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Fri, 27 Jun 2014 16:10:15 +0200 Subject: update dist --- dist/touch-imagelightbox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dist/touch-imagelightbox.js') 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 -- cgit v1.2.3