Skip to content

Attaching multiple plugins and classes to a single element

Nic Bell edited this page Jun 12, 2013 · 2 revisions
<div data-attach="Plugin1 Plugin2">
..
</div>
Attach.add('Plugin1',function(el){
..
});
Attach.add('Plugin2',function(el){
..
});
$(document).ready(function(){
  Attach.run();
});