Skip to content

a mootools patch that adds the :once suffix (and functionality) to event names

Notifications You must be signed in to change notification settings

arieh/Event-once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

$count

Adds a :once suffix to both Element and Class.Events event types. Once used, the selector will remove then event once it fired for the first time.

How to use

For all event interfaces, simply do:

#JS

myElement.addEvent('click:once',function(){});

myClass.addEvent('foo:once',function(){});

About

a mootools patch that adds the :once suffix (and functionality) to event names

Resources

Stars

Watchers

Forks

Packages

No packages published