Debug batamanjs model in view context

Posted . Visible to the public.

To inspect a model attributes binded to a dom element
$context($("#elem-id")[0]).controller.model_name.toJSON()

Original idea taken from the link below.

Bonyiii
Posted by Bonyiii to Bonyiii's deck (2014-03-17 20:17)