From d90b34f6eb14e6f0353b22ad36e012f5440afc34 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Fri, 27 Jun 2014 16:15:14 +0200 Subject: inline ignore for sublime linter --- js/touch-imagelightbox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/touch-imagelightbox.js b/js/touch-imagelightbox.js index db4b60c..f5bbe2f 100644 --- a/js/touch-imagelightbox.js +++ b/js/touch-imagelightbox.js @@ -72,7 +72,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') ); }, @@ -329,4 +331,4 @@ return this; }; -})( jQuery, window, document ); \ No newline at end of file +})( jQuery, window, document ); -- cgit v1.2.3