Skip to content

Instantly share code, notes, and snippets.

@m00sey
Created July 8, 2011 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m00sey/1070849 to your computer and use it in GitHub Desktop.
Save m00sey/1070849 to your computer and use it in GitHub Desktop.
Updates registering plugins
navigator.tp.showLong('bar');
var Toasty = function() {
};
Toasty.prototype.showLong = function(message, win, fail) {
PhoneGap.exec(win, fail, "Toasty", "show_long", [message]);
};
Toasty.prototype.showShort = function(message, win, fail) {
PhoneGap.exec(win, fail, "Toasty", "show_short", [message]);
};
navigator.tp = new Toasty();
<plugin name="Toasty" value="com.package.ToastPlugin"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment