@@ -150,7 +150,7 @@ $.widget( "ui.draggable", {
150
150
this . dragEl
151
151
// TODO: should we move this to the stylesheet and use a class?
152
152
. css ( "position" , "absolute" )
153
- . appendTo ( this . doc [ 0 ] . body )
153
+ . appendTo ( this . document [ 0 ] . body )
154
154
. offset ( this . element . offset ( ) ) ;
155
155
}
156
156
@@ -170,17 +170,17 @@ $.widget( "ui.draggable", {
170
170
} ;
171
171
172
172
// Cache the offset of scrollParent, if required for _handleScrolling
173
- if ( this . scrollParent [ 0 ] != this . doc [ 0 ] && this . scrollParent [ 0 ] . tagName != 'HTML' ) {
173
+ if ( this . scrollParent [ 0 ] != this . document [ 0 ] && this . scrollParent [ 0 ] . tagName != 'HTML' ) {
174
174
this . overflowOffset = this . scrollParent . offset ( ) ;
175
175
}
176
176
177
177
this . overflow = { } ;
178
178
179
- this . overflow . height = ( this . scrollParent [ 0 ] === this . doc [ 0 ] ) ?
180
- this . win . height ( ) : this . scrollParent . height ( ) ;
179
+ this . overflow . height = ( this . scrollParent [ 0 ] === this . document [ 0 ] ) ?
180
+ this . window . height ( ) : this . scrollParent . height ( ) ;
181
181
182
- this . overflow . width = ( this . scrollParent [ 0 ] === this . doc [ 0 ] ) ?
183
- this . win . width ( ) : this . scrollParent . width ( ) ;
182
+ this . overflow . width = ( this . scrollParent [ 0 ] === this . document [ 0 ] ) ?
183
+ this . window . width ( ) : this . scrollParent . width ( ) ;
184
184
185
185
this . _preparePosition ( event ) ;
186
186
@@ -189,13 +189,13 @@ $.widget( "ui.draggable", {
189
189
// TODO: should user be able to change position of draggable, if event stopped?
190
190
// If user stops propagation, leave helper there ( if there's one ), disallow any CSS changes
191
191
if ( event . cancelBubble === true ) {
192
- this . doc . unbind ( "." + this . widgetName ) ;
192
+ this . document . unbind ( "." + this . widgetName ) ;
193
193
return ;
194
194
}
195
195
196
196
this . _setCss ( event ) ;
197
197
198
- this . _bind ( this . doc , {
198
+ this . _bind ( this . document , {
199
199
mousemove : "_mouseMove" ,
200
200
mouseup : "_mouseUp"
201
201
} ) ;
@@ -211,7 +211,7 @@ $.widget( "ui.draggable", {
211
211
// TODO: should user be able to change position of draggable, if event stopped?
212
212
// If user stops propagation, leave helper there ( if there's one ), disallow any CSS changes
213
213
if ( event . cancelBubble === true ) {
214
- this . doc . unbind ( "." + this . widgetName ) ;
214
+ this . document . unbind ( "." + this . widgetName ) ;
215
215
return ;
216
216
}
217
217
@@ -239,7 +239,7 @@ $.widget( "ui.draggable", {
239
239
240
240
}
241
241
242
- this . doc . unbind ( "." + this . widgetName ) ;
242
+ this . document . unbind ( "." + this . widgetName ) ;
243
243
} ,
244
244
245
245
// Uses event to determine new position of draggable, before any override from callbacks
0 commit comments