File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 142142 $boxElement . addClass ( options . openClass ) ;
143143 $boxElement . removeClass ( options . closeClass ) ;
144144 }
145- $element . addClass ( options . openClass ) ;
145+ // $element.addClass(options.openClass);
146146 }
147147 }
148148 } ] ;
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 ( ) {
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 } ;
You can’t perform that action at this time.
0 commit comments