Skip to content

Instantly share code, notes, and snippets.

@trabianmatt
Created February 15, 2012 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trabianmatt/1832639 to your computer and use it in GitHub Desktop.
Save trabianmatt/1832639 to your computer and use it in GitHub Desktop.
{ styles } = require 'helpers'
PayoffOverview = require 'views/accounts/payoff/overview'
module.exports = class PayoffWindow extends Backbone.TitaniumView
viewName: 'Window'
attributes: styles.window.main
initialize: ->
@view.title = 'Calculating Payoff...'
render: =>
overview = new PayoffOverview
model: @model
controller: @controller
@bindTo overview, 'loaded', =>
@view.title = 'Payoff Quote'
@view.add overview.render().view
@
@trabianmatt
Copy link
Author

Heh - looks like I'm not using the viewStyles attribute in this view. Always nice to be able to trim code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment