Sha256: 56558271650faf6f7acbb9fe7a336801f90e844c0b712a47e6f9ca84b8e62073
Contents?: true
Size: 475 Bytes
Versions: 2
Compression:
Stored size: 475 Bytes
Contents
class window.Cartilage.Views.ContentView extends Cartilage.View el: "#content" initialize: (options = {}) -> @currentView = null super(options) show: (view) -> if @currentView @currentView.cleanup() if @currentView.cleanup else if @currentView console.warn "This view does not implement a cleanup method. Please extend all of your views from Cartilage.View to ensure compatibility." @currentView = view @addSubview @currentView
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cartilage-0.1.2 | app/assets/javascripts/cartilage/views/content_view.js.coffee |
cartilage-0.1.1 | app/assets/javascripts/cartilage/views/content_view.js.coffee |