upload new version

This commit is contained in:
Лампуша
2014-03-23 14:53:52 +04:00
parent 732cf21220
commit e369dbe929
3 changed files with 90 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
/*
cordova.define("org.apache.cordova.startapp.startapp", function(require, exports, module) { /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -22,12 +22,17 @@
var exec = require('cordova/exec');
var platform = require('cordova/platform');
/** Open a native alert dialog, with a customizable title and button text.
*
* @param {String} message app name
* @param {Function} completeCallback The callback that is called when open app
*/
module.exports = function(message, completeCallback) {
exec(completeCallback, null, "startApp", "startapp", [message]);
}
module.exports = {
check: function(message, completeCallback, errorCallback) {
exec(completeCallback, errorCallback, "startApp", "check", [message]);
},
start: function(message, completeCallback, errorCallback) {
exec(completeCallback, errorCallback, "startApp", "start", (typeof message === 'string') ? [message] : message);
}
}
});