Sha256: 2c631e1d4b7c71a870a1caed84fea00f298f833b8bdfe3b8f913b952ebff9b3c
Contents?: true
Size: 962 Bytes
Versions: 2
Compression:
Stored size: 962 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} }" for __const of __processing.PConstants eval "var #{__const} = __processing.PConstants.#{__const}" for __sym in ['ArrayList', 'HashMap', 'PVector', 'ObjectIterator', 'PConstants'] eval "var #{__sym} = __processing.#{__sym}" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coffee-processing-0.0.4 | lib/coffee-processing/boilerplate.coffee.erb |
coffee-processing-0.0.3 | lib/coffee-processing/boilerplate.coffee.erb |