@@ -62,29 +62,29 @@ define(["dojo", "dojox"], function(dojo, dojox) {
62
62
// Override-able by the client as an extra check to ensure that a bounding
63
63
// box should begin to be drawn. If the client has any preconditions to when a
64
64
// bounding box should be drawn, they should be included in this method.
65
- // evt: Object
65
+ // evt: Object
66
66
// the mouse event which caused this callback to fire.
67
67
return true ;
68
68
} ,
69
69
70
70
boundingBoxIsViable : function ( evt ) {
71
- // summary:
71
+ // summary:
72
72
// Override-able by the client as an extra check to ensure that a bounding
73
73
// box is viable. In some instances, it might not make sense that
74
74
// a mouse down -> mouse move -> mouse up interaction represents a bounding box.
75
75
// For example, if a dialog is open the client might want to suppress a bounding
76
76
// box. This function could be used by the client to ensure that a bounding box is only
77
77
// drawn on the document when certain conditions are met.
78
- // evt: Object
78
+ // evt: Object
79
79
// the mouse event which caused this callback to fire.
80
80
return true ;
81
81
} ,
82
82
83
83
_onMouseDown : function ( evt ) {
84
- // summary:
84
+ // summary:
85
85
// Executed when the user mouses down on the document. Resets the
86
86
// this._startX and this._startY member variables.
87
- // evt: Object
87
+ // evt: Object
88
88
// the mouse event which caused this callback to fire.
89
89
if ( this . shouldStartDrawingBox ( evt ) && dojo . mouseButtons . isLeft ( evt ) ) {
90
90
if ( this . _startX == null ) {
@@ -98,24 +98,24 @@ define(["dojo", "dojox"], function(dojo, dojox) {
98
98
} ,
99
99
100
100
_onMouseMove : function ( evt ) {
101
- // summary:
101
+ // summary:
102
102
// Executed when the user moves the mouse over the document. Delegates to
103
103
// this._drawBoundingBox if the user is trying to draw a bounding box.
104
104
// whether the user was drawing a bounding box and publishes to the
105
105
// "/dojox/dnd/bounding" topic if the user is finished drawing their bounding box.
106
- // evt: Object
106
+ // evt: Object
107
107
// the mouse event which caused this callback to fire.
108
108
this . _endX = evt . clientX ;
109
109
this . _endY = evt . clientY ;
110
110
this . _drawBoundingBox ( ) ;
111
111
} ,
112
112
113
113
_onMouseUp : function ( evt ) {
114
- // summary:
114
+ // summary:
115
115
// Executed when the users mouses up on the document. Checks to see
116
116
// whether the user was drawing a bounding box and publishes to the
117
117
// "/dojox/dnd/bounding" topic if the user is finished drawing their bounding box.
118
- // evt: Object
118
+ // evt: Object
119
119
// the mouse event which caused this callback to fire.
120
120
if ( this . _endX !== null && this . boundingBoxIsViable ( evt ) ) {
121
121
// the user has moused up ... tell the selector to check to see whether
0 commit comments