This commit is contained in:
GitHub Merge Button 2012-07-10 07:56:07 -07:00
commit 24b5aa5470

View file

@ -154,6 +154,13 @@ Example returns:
*/ */
exports.setText = function(padID, text, callback) exports.setText = function(padID, text, callback)
{ {
//text is required
if(typeof text != "string")
{
callback(new customError("text is no string","apierror"));
return;
}
//get the pad //get the pad
getPadSafe(padID, true, function(err, pad) getPadSafe(padID, true, function(err, pad)
{ {