Cordova.js
Javascript is Magic
Gord Tanner, Code Poet(RIM)
@gordtanner
Last night ....
A little backstory ...
Emulate all the things!
window.navigator = require('ripple/phonegap/navigator');
navigator.geolocation = require('ripple/phonegap/geo');
But ...
All Calls use a bridge to native.
phonegap.exec(success, fail, "Contacts", "create", args);
phonegap.exec(null, null, "App", "exit", args);
var honeypot = require('ripple/honeypot');
honeypot.monitor(window, "lantern").andReturn("mine!");
lantern = 12;
expect(lantern).toBe("mine!");
allowing..
var bridge = require('ripple/phonegap/bridge');
honeypot.monitor(PhoneGap, "exec").andReturn(bridge);
Where does that bring us now?
There was a problem in cordova.js
Combine Ripple and Cordova.js into something better
AMD Modules?
AMD Modules?