File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,18 +82,18 @@ export class LeafletMapModel extends widgets.DOMWidgetModel {
82
82
style : null ,
83
83
default_style : null ,
84
84
dragging_style : null ,
85
- _dragging : false
86
85
} ;
87
86
}
88
87
89
88
initialize ( attributes , options ) {
90
89
super . initialize ( attributes , options ) ;
91
90
this . set ( 'window_url' , window . location . href ) ;
91
+ this . _dragging = false
92
92
}
93
93
94
94
update_style ( ) {
95
95
var new_style ;
96
- if ( ! this . get ( ' _dragging' ) ) {
96
+ if ( ! this . _dragging ) {
97
97
new_style = this . get ( 'default_style' ) ;
98
98
} else {
99
99
new_style = this . get ( 'dragging_style' ) ;
@@ -264,12 +264,12 @@ export class LeafletMapView extends utils.LeafletDOMWidgetView {
264
264
this . model . update_bounds ( ) . then ( ( ) => {
265
265
this . touch ( ) ;
266
266
} ) ;
267
- this . model . set ( ' _dragging' , false ) ;
267
+ this . model . _dragging = false ;
268
268
this . model . update_style ( ) ;
269
269
} ) ;
270
270
271
271
this . obj . on ( 'movestart' , ( ) => {
272
- this . model . set ( ' _dragging' , true ) ;
272
+ this . model . _dragging = true ;
273
273
this . model . update_style ( ) ;
274
274
} ) ;
275
275
You can’t perform that action at this time.
0 commit comments