jQuery.View.hookup  function     

Registers a hookup function that can be called back after the html is put on the page. Typically this is handled by the template engine. Currently only EJS supports this functionality.

var id = $.View.hookup(function(el){
       //do something with el
    }),
    html = "<div data-view-id='"+id+"'>"
$('.foo').html(html);
$.View.hookup(cb, the) -> undefined
{Function}

a callback function to be called with the element

{Number}

hookup number

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support