Extend jquery dom event with generator support (through co.wrap)


Keywords
jquery, co, event
License
ISC
Install
npm install jquery-co@1.1.11

Documentation

Extend jquery dom event with generator support (through co.wrap)

API

var jQuery = require('jquery');
require('jquery-co')(jQuery);


jQuery(mydom).coclick(function*(){
  yield bakeSomeCake();
});

//or

// will use "global" jquery (as peerDependency)
require('jquery-co/install');

Credits