aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-06-27 16:15:14 +0200
committerVictor Häggqvist <[email protected]>2014-06-27 16:15:14 +0200
commitd90b34f6eb14e6f0353b22ad36e012f5440afc34 (patch)
treec3455c457022c9ac617760615584c98e146b02ec
parent5e95e03ea0e14a4781a76b16bc8ec7f5c2ab3297 (diff)
inline ignore for sublime linter
-rw-r--r--js/touch-imagelightbox.js4
1 files changed, 3 insertions, 1 deletions
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 );