examples/demos/backbone_lmd/compiled/dev.lmd.js
function( e ) {
        if ( e.which !== common.ENTER_KEY || !this.input.val().trim() ) {
            return;
        }

        todos.create( this.newAttributes() );
        this.input.val('');
    }
function( e ) {
        if ( e.which !== common.ENTER_KEY || !this.input.val().trim() ) {
            return;
        }

        todos.create( this.newAttributes() );
        this.input.val('');
    }
If you hit return in the main input field, create new **Todo** model, persisting it to *localStorage*.