Added null check for closeCallback

This commit is contained in:
Rossen Hristov
2015-09-03 17:05:24 +03:00
parent 1d7bdd46b0
commit 1bf136cb0a

View File

@ -210,7 +210,9 @@ export class Page extends contentView.ContentView implements dts.Page {
var that = this;
var closeProxy = function () {
that._hideNativeModalView(parent);
closeCallback.apply(undefined, arguments);
if (closeCallback){
closeCallback.apply(undefined, arguments);
}
};
this.notify({