elem.nodeName is undefined
Inspecting the backtrace in firebug led me to this line
$( 'td.qty_sel :input' ).live( 'change', ns.viewModel().qtyChange() );
He said, “because your function is not a function reference, it’s a function call”
A few seconds and a corrected script later and it was working.
$( 'td.qty_sel :input' ).live( 'change', ns.viewModel().qtyChange );
- When referencing existing functions in a jQuery event handler, don’t call the function (duh) – remove the parens (duh).