Skip to content

Instantly share code, notes, and snippets.

@ppcano
Created November 17, 2011 19:07
Show Gist options
  • Save ppcano/1374108 to your computer and use it in GitHub Desktop.
Save ppcano/1374108 to your computer and use it in GitHub Desktop.
Ripple, SC2 triggering phonegap events
TestView.View1.app = SC.Application.create({
customEvents: {
backbutton : 'backButton',
deviceready : 'deviceReady',
resume : 'resume'
}
});
var doc = require('ripple/emulatorBridge').document();
var evt = doc.createEvent("Events");
evt.initEvent('resume');
doc.dispatchEvent(evt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment