Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 405 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 405 Bytes

Hook

Pull to refresh for the web

Dependencies

  • jQuery

Settings

  • refresh: refreshes entire page, default is true, if false will call callback (must also have callback setting),
  • callback: custom callback function

Examples:

// Defaults
$('#hook').hook();

// Callback
$('#hook').hook({
  refresh: false,
  callback: function(){
    console.log('Hello, World!');
  }
});