Skip to content
Snippets Groups Projects
SendMenuView.js 446 B
Newer Older
Amanda Ghassaei's avatar
Amanda Ghassaei committed
/**
 * Created by aghassaei on 3/11/15.
 */

SendMenuView = Backbone.View.extend({

    el: "#menuContent",

    events: {
    },

Amanda Ghassaei's avatar
Amanda Ghassaei committed
    initialize: function(){

        //bind events
Amanda Ghassaei's avatar
Amanda Ghassaei committed

        _.bindAll(this, "render");
    },

    render: function(){
        if (this.model.get("currentTab") != "send") return;
        this.$el.html(this.template(this.model.toJSON()));
Amanda Ghassaei's avatar
Amanda Ghassaei committed
    template: _.template('realtime communication with machine')