Skip to content

Commit a9e199a

Browse files
committed
upgrade version to 0.0.14 , scope destroy
1 parent da23578 commit a9e199a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pbox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,15 @@
313313
this._remove();
314314
this.$watch && this.$watch();
315315
this._scope && this._scope.$destroy();
316+
this._scope = null;
316317
$document.unbind("mousedown.pbox" + this._id);
317318
_resultDeferred.resolve(result);
318319
};
319320

320321
BoxModal.prototype.dismiss = function (reason) {
321322
this._remove();
322323
this._scope && this._scope.$destroy();
324+
this._scope = null;
323325
_resultDeferred.reject(reason);
324326
}
325327
}

0 commit comments

Comments
 (0)