jQuery.fn.hookup

  • function
 

Called on a jQuery collection that was rendered with can.View with pending hookups. can.View can render a

modifiers.hookup()

Called on a jQuery collection that was rendered with can.View with pending hookups. can.View can render a

template with hookups, but not actually perform the hookup, because it returns a string without actual DOM elements to hook up to. So hookup performs the hookup and clears the pending hookups, preventing errors in future templates.

$(can.View('//views/recipes.ejs',recipeData)).hookup()