contact picker giving me error
i'm getting an error msg:
TypeError: Cannot call method "showContacts" of undefined
any help here?
b9.addEventListener('click', function(){
Titanium.Contacts.showContacts({
selectedPerson: function(e) {
if (e.property == 'phone') {
Ti.API.log(e.label + ": " + e.value);
}
}
});
});