Sha256: 22f5553be8cf55593dc6853be03c08d1caa3143eba0ac5ced8dd5d2779937633
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
<%= javascript_object %> = (__processing) -> for __sym of __processing when eval("typeof #{__sym} === 'undefined'") if typeof __processing[__sym] == 'function' eval "var #{__sym} = function() { return __processing.#{__sym}.apply(__processing, arguments) }" else eval "var #{__sym} = function() { return __processing.#{__sym} }" null processing = __processing <%= code %> for callback in [ 'setup', 'draw', 'mouseClicked', 'mouseDragged', 'mouseMoved', 'mouseOut', 'mouseOver', 'mousePressed', 'mouseReleased', 'keyPressed', 'keyReleased', 'keyTyped' ] when !eval("typeof #{__sym} === 'undefined'") eval "__processing.#{callback} = #{callback}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coffee-processing-0.0.2 | lib/coffee-processing/boilerplate.coffee.erb |