Skip to content
Snippets Groups Projects
Select Git revision
  • 2ac977f81f1b116eaacf35b7963f9251f818ff17
  • master default
  • dev
3 results

SendMenuView.js

Blame
  • SendMenuView.js 512 B
    /**
     * Created by aghassaei on 3/11/15.
     */
    
    SendMenuView = Backbone.View.extend({
    
        el: "#menuContent",
    
        events: {
        },
    
        initialize: function(){
    
            //bind events
    
            _.bindAll(this, "render");
        },
    
        render: function(){
            if (this.model.changedAttributes()["currentNav"]) return;
            if (this.model.get("currentTab") != "send") return;
            this.$el.html(this.template(this.model.toJSON()));
        },
    
    
        template: _.template('realtime communication with machine')
    
    });