Sha256: 594473c37069e9ee4ca983cc0201d93526b94adc30c349a0a52f4cc3f54b987e
Contents?: true
Size: 929 Bytes
Versions: 3
Compression:
Stored size: 929 Bytes
Contents
Lanes.namespace( 'Screens' ) class Lanes.View.Screen extends Lanes.View.Base namespace: "Screens" mixins:[ Lanes.View.mixins.ScreenChangeListener ] initializeChanges:-> @_changeListeners = {} for keypath in ( @usingModels || ['model'] ) @_changeListeners[keypath] = new Lanes.View.ScreenChangeListener(this, keypath) reset: Lanes.emptyFn render: -> previouslyRendered = this.rendered Lanes.View.RenderContext.start(this) # Lanes.re we cheat and skip ViewBase so it doesn't push to context this.reset() this.renderContextFree() #Lanes.View.Base.__super__.render.apply(this, arguments) this.renderAllSubviews() if previouslyRendered Lanes.View.RenderContext.reset() this addButton: (config, align='left')-> this.$(".toolbar ." + align).append( Lanes.View.Helpers.button(config) )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.0.3 | client/javascripts/view/Screen.coffee |
lanes-0.0.2 | client/javascripts/view/Screen.coffee |
lanes-0.0.1 | client/javascripts/view/Screen.coffee |