You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On close function: if (typeof this.onClose === 'function') this.onClose.apply(this, [this.scope]);
and in the setTimeout function: if (typeof self.onDestroy == 'function') self.onDestroy.apply(self, [self.scope]);
These two functions will not emit anything to angular,so some angular function calls in onClose or onDestroy will not work properly like: onDestroy: function () { $location.path($scope.backurl); return true; }
so I changed those code to: if (typeof this.onClose === 'function') { this.onClose.apply(this, [this.scope]); self.scope.$parent.$apply(); }
to call angular apply the changes.
The text was updated successfully, but these errors were encountered:
On close function:
if (typeof this.onClose === 'function') this.onClose.apply(this, [this.scope]);
and in the setTimeout function:
if (typeof self.onDestroy == 'function') self.onDestroy.apply(self, [self.scope]);
These two functions will not emit anything to angular,so some angular function calls in onClose or onDestroy will not work properly like:
onDestroy: function () { $location.path($scope.backurl); return true; }
so I changed those code to:
if (typeof this.onClose === 'function') { this.onClose.apply(this, [this.scope]); self.scope.$parent.$apply(); }
to call angular apply the changes.
The text was updated successfully, but these errors were encountered: