MCPcopy
hub / github.com/blueimp/Gallery / isTarget

Function isTarget

js/blueimp-gallery.js:924–926  ·  view source on GitHub ↗

* Checks if the target from the close has the given class * * @param {string} className Class name * @returns {boolean} Returns true if the target has the class name

(className)

Source from the content-addressed store, hash-verified

922 * @returns {boolean} Returns true if the target has the class name
923 */
924 function isTarget(className) {
925 return $(target).hasClass(className) || $(parent).hasClass(className)
926 }
927 if (isTarget(options.toggleClass)) {
928 // Click on "toggle" control
929 this.preventDefault(event)

Callers 1

blueimp-gallery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…