blackberry / WebWorks-API-Docs

BlackBerry WebWorks API Documentation
66 stars 47 forks source link

error in standardAskAsync code snipet #436

Open astanley opened 11 years ago

astanley commented 11 years ago

https://developer.blackberry.com/html5/apis/blackberry.ui.dialog.html#.standardAskAsync

The callback method should be

function dialogCallBack(selection){ alert(selection); }

not the following (which results in undefined):

function dialogCallBack(selection){ alert(selection.return); }

Gerii commented 11 years ago

selection.return does work for me.