Added check for callback to alert functionality of ionPopup

This commit is contained in:
BastiRehm 2015-03-01 17:50:09 +10:00
parent 0912292823
commit 2fddbb1498

View file

@ -48,7 +48,7 @@ IonPopup = {
text: options.okText ? options.okText : 'Ok',
type: options.okType ? options.okType : 'button-positive',
onTap: function(event) {
options.onOk(event);
if (options.onOk) options.onOk(event);
return true;
}
}