author | Ryan Willoughby <ryan.willoughby@nitobi.com> |
Tue, 06 Jul 2010 11:31:19 -0700 | |
changeset 0 | 54063d8b0412 |
permissions | -rwxr-xr-x |
/** * This class provides access to the telephony features of the device. * @constructor */ function Telephony() { this.number = ""; } /** * Calls the specifed number. * @param {Integer} number The number to be called. */ Telephony.prototype.send = function(number) { widget.openURL('tel:+' + number); }; if (typeof navigator.telephony == "undefined") navigator.telephony = new Telephony();