git clone https://gist.github.com/08be90a2f21205062ccc.git
$ npm install # maybe npm start will take care of it but just in case
$ npm start && open out.png
> [email protected] start /Users/bsergean/src/offscreen_sample
git clone https://gist.github.com/08be90a2f21205062ccc.git
$ npm install # maybe npm start will take care of it but just in case
$ npm start && open out.png
> [email protected] start /Users/bsergean/src/offscreen_sample
| ### | |
| #Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html) | |
| ### | |
| #Assuming your starting from a clean directory | |
| mkdir server | |
| cd server | |
| #generate private key |
| /** | |
| * Asesses all of the events handlers bound on an View and makes touch event equivalents. | |
| * | |
| * Dependencies: Backbone, jQuery, Ben Alman's Outside Events jQuery plugin updated to support "touchstart" | |
| * | |
| * @param {Backbone.View} view | |
| */ | |
| function touchify (view) { | |
| _.each(view.events, function (value, key) { | |
| _.each({'mouseleave': 'touchstartoutside', 'mouseenter': 'touchstart'}, function (eventValue, eventKey) { |