Skip to content

Commit d6b7957

Browse files
committed
upgrade version to 0.0.13
1 parent 1d772e5 commit d6b7957

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-wtpbox",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"main": "src/pbox.js",
55
"dependencies": {
66
"angular": "~1.2.25",

src/pbox.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
$boxElement.addClass(options.openClass);
143143
$boxElement.removeClass(options.closeClass);
144144
}
145-
$element.addClass(options.openClass);
145+
//$element.addClass(options.openClass);
146146
}
147147
}
148148
}];
@@ -295,7 +295,7 @@
295295
$timeout(function () {
296296
_self._bindEvents();
297297
if (_self._options.watch) {
298-
scope.$watch(function () {
298+
_self.$watch = scope.$watch(function () {
299299
return _self._pboxElement.width() + "," + _self._pboxElement.height()
300300
}, function () {
301301
$timeout(function () {
@@ -310,6 +310,7 @@
310310

311311
BoxModal.prototype.close = function (result) {
312312
this._remove();
313+
this.$watch && this.$watch();
313314
$document.unbind("mousedown.pbox" + this._id);
314315
_resultDeferred.resolve(result);
315316
};

0 commit comments

Comments
 (0)