Advertisement
Guest User

Functions and Modules

a guest
Jun 6th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.coffee ------------------------------------------------------------
  2. {RemoteLayer} = require "RemoteLayer"
  3. myRemote = new RemoteLayer
  4. myRemote.functionVariable = () -> print "super clicked"
  5.  
  6. module ---------------------------------------------------------------
  7. class exports.RemoteLayer extends Layer
  8.     constructor: (@options={}) ->
  9.         @functionVariable = () -> print "click"
  10.  
  11.     playPauseButton.onClick ->
  12.             print "was clicked"
  13.             @functionVariable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement