...
|
...
|
@@ -1809,25 +1809,26 @@ function UUIDcreatePart(length) { |
|
|
// file: yohoInterface.js
|
|
|
define("cordova/yohoInterface", function(require, exports, module) {
|
|
|
|
|
|
var argscheck = require('cordova/argscheck'),
|
|
|
exec = require('cordova/exec');
|
|
|
|
|
|
function YHInterface() {
|
|
|
|
|
|
}
|
|
|
|
|
|
YHInterface.prototype.triggerEvent = function(onSuccess, onFail, options) {
|
|
|
// argscheck.checkArgs('fFO', 'YHInterface.eventTriggered', arguments);
|
|
|
options = options || {};
|
|
|
exec(onSuccess, onFail, "YOHOWebViewInterface", "eventTriggered", [ options ]);
|
|
|
|
|
|
var params = options;
|
|
|
params = params || {};
|
|
|
if (typeof options == "object") {
|
|
|
var str = JSON.stringify(options);
|
|
|
params = JSON.parse(str);
|
|
|
}
|
|
|
|
|
|
window.cordova.exec(onSuccess, onFail, "YOHOWebViewInterface", "eventTriggered", [ params ]);
|
|
|
}
|
|
|
|
|
|
module.exports = new YHInterface();
|
|
|
|
|
|
});
|
|
|
|
|
|
window.yohoInterface = require('cordova/yohoInterface');
|
|
|
|
|
|
window.cordova = require('cordova');
|
|
|
|
|
|
require('cordova/init');
|
...
|
...
|
|