Skip to content

tetronomis/BindIt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BindIt

A jQuery plugin to bind events with delay.

Usage

$.bindTempo(type, delay, fn)

Useful for events triggered repeatedly such as scroll event or mousemove event.
In this case, fn is called every delay milliseconds instead of every triggered event type.

$(window).bindTempo('mousemove', 1000, function() {
    $('body').append('Mouse is moving<br />');
})

$.bindSolo(type, delay, fn)

Useful for the fn to call after delay once user completed an action such as typing or scrolling.

$('textarea').bindSolo('keyup', 1000, function() {
    $('body').append('Saving...<br />');
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 75.3%
  • CoffeeScript 24.7%