Merge branch 'master' of git://github.com/phonegap/phonegap-android

This commit is contained in:
macdonst
2010-09-29 16:31:34 -04:00
4 changed files with 160 additions and 54 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ Notification.prototype.blink = function(count, colour) {
* @param {Integer} mills The number of milliseconds to vibrate for.
*/
Notification.prototype.vibrate = function(mills) {
PhoneGap.execAsync(null, null, "Device", "vibrate", [mills]);
PhoneGap.execAsync(null, null, "Notification", "vibrate", [mills]);
};
/**
@@ -51,7 +51,7 @@ Notification.prototype.vibrate = function(mills) {
* @param {Integer} count The number of beeps.
*/
Notification.prototype.beep = function(count) {
PhoneGap.execAsync(null, null, "Device", "beep", [count]);
PhoneGap.execAsync(null, null, "Notification", "beep", [count]);
};
// TODO: of course on Blackberry and Android there notifications in the UI as well