@@ -912,12 +912,12 @@ $.extend(KhanUtil.Graphie.prototype, {
912
912
// By returning false from onMove(), the move can be vetoed,
913
913
// providing custom constraints on where the point can be moved.
914
914
// By returning array [x, y], the move can be overridden
915
- if ( $ . isFunction ( movablePoint . onMove ) ) {
915
+ if ( _ . isFunction ( movablePoint . onMove ) ) {
916
916
var result = movablePoint . onMove ( coordX , coordY ) ;
917
917
if ( result === false ) {
918
918
doMove = false ;
919
919
}
920
- if ( $ . isArray ( result ) ) {
920
+ if ( _ . isArray ( result ) ) {
921
921
coordX = result [ 0 ] ;
922
922
coordY = result [ 1 ] ;
923
923
}
@@ -942,9 +942,9 @@ $.extend(KhanUtil.Graphie.prototype, {
942
942
$ ( document ) . unbind ( "vmousemove vmouseup" ) ;
943
943
movablePoint . dragging = false ;
944
944
KhanUtil . dragging = false ;
945
- if ( $ . isFunction ( movablePoint . onMoveEnd ) ) {
945
+ if ( _ . isFunction ( movablePoint . onMoveEnd ) ) {
946
946
var result = movablePoint . onMoveEnd ( coordX , coordY ) ;
947
- if ( $ . isArray ( result ) ) {
947
+ if ( _ . isArray ( result ) ) {
948
948
coordX = result [ 0 ] ;
949
949
coordY = result [ 1 ] ;
950
950
mouseX = ( coordX - graph . range [ 0 ] [ 0 ] ) * graph . scale [ 0 ] ;
@@ -1005,7 +1005,7 @@ $.extend(KhanUtil.Graphie.prototype, {
1005
1005
this . mouseTarget . animate ( end , time ) ;
1006
1006
}
1007
1007
this . coord = [ coordX , coordY ] ;
1008
- if ( $ . isFunction ( this . onMove ) ) {
1008
+ if ( _ . isFunction ( this . onMove ) ) {
1009
1009
this . onMove ( coordX , coordY ) ;
1010
1010
}
1011
1011
} ;
@@ -1200,7 +1200,7 @@ $.extend(KhanUtil.Graphie.prototype, {
1200
1200
coordY = fn ( closestX ) ;
1201
1201
1202
1202
// If the caller wants to be notified when the user points to the function
1203
- if ( $ . isFunction ( interactiveFn . onMove ) ) {
1203
+ if ( _ . isFunction ( interactiveFn . onMove ) ) {
1204
1204
interactiveFn . onMove ( coordX , coordY ) ;
1205
1205
}
1206
1206
@@ -1212,7 +1212,7 @@ $.extend(KhanUtil.Graphie.prototype, {
1212
1212
interactiveFn . highlight = false ;
1213
1213
interactiveFn . cursorPoint . animate ( { opacity : 0.0 } , 50 ) ;
1214
1214
// If the caller wants to be notified when the user stops pointing to the function
1215
- if ( $ . isFunction ( interactiveFn . onLeave ) ) {
1215
+ if ( _ . isFunction ( interactiveFn . onLeave ) ) {
1216
1216
interactiveFn . onLeave ( coordX , coordY ) ;
1217
1217
}
1218
1218
}
@@ -1534,7 +1534,7 @@ $.extend(KhanUtil.Graphie.prototype, {
1534
1534
}
1535
1535
}
1536
1536
1537
- if ( $ . isFunction ( lineSegment . onMove ) ) {
1537
+ if ( _ . isFunction ( lineSegment . onMove ) ) {
1538
1538
lineSegment . onMove ( dX , dY ) ;
1539
1539
}
1540
1540
@@ -1545,7 +1545,7 @@ $.extend(KhanUtil.Graphie.prototype, {
1545
1545
if ( ! lineSegment . highlight ) {
1546
1546
lineSegment . visibleLine . animate ( lineSegment . normalStyle , 50 ) ;
1547
1547
}
1548
- if ( $ . isFunction ( lineSegment . onMoveEnd ) ) {
1548
+ if ( _ . isFunction ( lineSegment . onMoveEnd ) ) {
1549
1549
lineSegment . onMoveEnd ( ) ;
1550
1550
}
1551
1551
@@ -1895,11 +1895,11 @@ $.extend(KhanUtil.Graphie.prototype, {
1895
1895
// moved. By returning array [dX, dY], the move can
1896
1896
// be overridden.
1897
1897
var doMove = true ;
1898
- if ( $ . isFunction ( polygon . onMove ) ) {
1898
+ if ( _ . isFunction ( polygon . onMove ) ) {
1899
1899
var onMoveResult = polygon . onMove ( dX , dY ) ;
1900
1900
if ( onMoveResult === false ) {
1901
1901
doMove = false ;
1902
- } else if ( $ . isArray ( onMoveResult ) ) {
1902
+ } else if ( _ . isArray ( onMoveResult ) ) {
1903
1903
dX = onMoveResult [ 0 ] ;
1904
1904
dY = onMoveResult [ 1 ] ;
1905
1905
}
@@ -1943,7 +1943,7 @@ $.extend(KhanUtil.Graphie.prototype, {
1943
1943
point . visibleShape . animate ( point . normalStyle , 50 ) ;
1944
1944
} ) ;
1945
1945
}
1946
- if ( $ . isFunction ( polygon . onMoveEnd ) ) {
1946
+ if ( _ . isFunction ( polygon . onMoveEnd ) ) {
1947
1947
polygon . onMoveEnd ( ) ;
1948
1948
}
1949
1949
}
0 commit comments