examples/todolist/js/main.js
function (e) {
            if (e && e.preventDefault) e.preventDefault();
            var $el = $(e.target);
            var cid = $el.attr('todo-cid');
            if (cid) {
                this.options.toggleItem(cid);
            }
            return false;
        }
function (e) {
            if (e && e.preventDefault) e.preventDefault();
            var $el = $(e.target);
            var cid = $el.attr('todo-cid');
            if (cid) {
                this.options.toggleItem(cid);
            }
            return false;
        }
function ( e ) { if ( e && e . preventDefault ) e . preventDefault ( ) ; var $el = $ ( e . target ) ; var cid = $el . attr ( 'todo-cid' ) ; if ( cid ) { this . options . toggleItem ( cid ) ; } return false ; }
Handles click on the listview Retrieves the cid of the object, calls Controller's `toggleItem` method if the clicked element contains a valid `todo-cid`.
Handles click on the listview Retrieves the cid of the object calls Controller s toggleItem method if the clicked element contains a valid todo - cid .