javascript - Phonegap - Phonegap to Utils change -


so had app running phonegap 1.4.0 (don't ask), decided upgrade 1.8.1, upon doing phonegap global variable no more, replaced utils.

so converted every occurance of:

var thisuuid = phonegap.createuuid(); 

to:

var thisuuid = utils.createuuid(); 

only greeted 'utils' not defined reference error when running application. opened cordova-1.8.1.js , see utils , utils.createuuid indeed being defined globally, have no idea why when try , call i'm not generating uuid, nor matter.

i had same requirement found the utils not exported external module used following way:

var utils = cordova.require('cordova/utils'); var myid = utils.createuuid(); 

Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -