Skip to content

Instantly share code, notes, and snippets.

@acidjazz
Created February 15, 2013 03:30
Show Gist options
  • Save acidjazz/4958377 to your computer and use it in GitHub Desktop.
Save acidjazz/4958377 to your computer and use it in GitHub Desktop.
cordova.define("cordova/plugin/AccountList", function(require, exports, module) {
var exec = require("cordova/exec");
var AccountList = function () {};
AccountList.prototype.get = function(params, success, fail) {
return cordova.exec( function(args) {
success(args);
}, function(args) {
fail(args);
}, 'AccountList', '', [params]);
};
cordova.addConstructor(function () {
if (cordova.addPlugin) {
cordova.addPlugin("AccountList", new AccountList());
} else {
if (!window.plugins) {
window.plugins = {};
}
window.plugins.AccountList = new AccountList();
}
});
});
if (!window.plugins) {
window.plugins = {};
}
if (!window.plugins.AccountList) {
window.plugins.AccountList = cordova.require("cordova/plugin/AccountList");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment