Sha256: bd5be2044ac4a99b49a09d337104dced72f63b6108585e72ba9828d2fea3dbfa
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
/** * This file is responsible for rendering * all the ports on the system * @author: Tawheed Abdul-Raheem * @class: SANBLaze.PortView * **/ /* global define */ var SANBLaze = SANBLaze || {}; (function() { 'use strict'; define([ 'jquery', 'underscore', 'backbone', 'views/Port.View', ], function($, _, Backbone) { SANBLaze.AllPortsView = Backbone.View.extend({ // Instead of generating a new element, bind to the // the existing element present in the HTML el: '.nav', // Initialization initialize: function() { this.collection = SANBLaze.PortView(); }, // Rendering the app render: function() { this.renderPort(); }, // Render a port by creating a PortView and appending // the element it renders renderPort: function() { var portView = new SANBLaze.PortView(); this.$el.append(portView.render().el); } }); return SANBLaze.AllPortsView; }); }());
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backbone_generator-0.0.5 | lib/backbone_generator/generators/tests/template/mainview.js |
backbone_generator-0.0.4 | lib/backbone_generator/generators/tests/template/mainview.js |