File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-wtpbox" ,
3
- "version" : " 0.0.12 " ,
3
+ "version" : " 0.0.13 " ,
4
4
"main" : " src/pbox.js" ,
5
5
"dependencies" : {
6
6
"angular" : " ~1.2.25" ,
Original file line number Diff line number Diff line change 142
142
$boxElement . addClass ( options . openClass ) ;
143
143
$boxElement . removeClass ( options . closeClass ) ;
144
144
}
145
- $element . addClass ( options . openClass ) ;
145
+ // $element.addClass(options.openClass);
146
146
}
147
147
}
148
148
} ] ;
295
295
$timeout ( function ( ) {
296
296
_self . _bindEvents ( ) ;
297
297
if ( _self . _options . watch ) {
298
- scope . $watch ( function ( ) {
298
+ _self . $watch = scope . $watch ( function ( ) {
299
299
return _self . _pboxElement . width ( ) + "," + _self . _pboxElement . height ( )
300
300
} , function ( ) {
301
301
$timeout ( function ( ) {
310
310
311
311
BoxModal . prototype . close = function ( result ) {
312
312
this . _remove ( ) ;
313
+ this . $watch && this . $watch ( ) ;
313
314
$document . unbind ( "mousedown.pbox" + this . _id ) ;
314
315
_resultDeferred . resolve ( result ) ;
315
316
} ;
You can’t perform that action at this time.
0 commit comments