"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/templates/package-coffeescript/lib/__package-name__-view.coffee.template" (8 Mar 2017, 610 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 module.exports =
    2 class __PackageName__View
    3   constructor: (serializedState) ->
    4     # Create root element
    5     @element = document.createElement('div')
    6     @element.classList.add('__package-name__')
    7 
    8     # Create message element
    9     message = document.createElement('div')
   10     message.textContent = "The __PackageName__ package is Alive! It's ALIVE!"
   11     message.classList.add('message')
   12     @element.appendChild(message)
   13 
   14   # Returns an object that can be retrieved when package is activated
   15   serialize: ->
   16 
   17   # Tear down any state and detach
   18   destroy: ->
   19     @element.remove()
   20 
   21   getElement: ->
   22     @element