jQuery-flexImages | lightweight jQuery plugin for creating fluid galleries | Widget library
kandi X-RAY | jQuery-flexImages Summary
kandi X-RAY | jQuery-flexImages Summary
A lightweight jQuery plugin for creating fluid galleries as seen on Flickr and Google Images.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jQuery-flexImages
jQuery-flexImages Key Features
jQuery-flexImages Examples and Code Snippets
Community Discussions
Trending Discussions on jQuery-flexImages
QUESTION
i found this script
on line 23/24 is this code:
...ANSWER
Answered 2020-Aug-01 at 18:35'resize.flexImages'
is just a string that represents an event type in the DOM - it's being used in that script to begin the name of the event that is being bound to the event handler function, in this case function(){ makeGrid(grid, items, o); }
during the on()
function call.
The .off()
function call doesn't specify a handler function, as it is presumably already bound/attached to that event during the on()
call - which again is specified as a string. The off()
just removes the handler.
If you read the documentation here: https://api.jquery.com/on/ you will see jQuery recommends this convention for naming the event so it doesn't interfere with other events, in this example, presumably other resize
events.
An event name can be qualified by event namespaces that simplify removing or triggering the event. For example, "click.myPlugin.simple" defines both the myPlugin and simple namespaces for this particular click event. A click event handler attached via that string could be removed with .off("click.myPlugin") or .off("click.simple") without disturbing other click handlers attached to the elements. Namespaces are similar to CSS classes in that they are not hierarchical; only one name needs to match. Namespaces should contain upper/lowercase letters and digits only.
... From the jQuery docs
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jQuery-flexImages
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page