Skip to content

Commit 2277e99

Browse files
committed
Deleting commented code
1 parent 738fadf commit 2277e99

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

javascript/firefox-driver/js/syntheticMouse.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,6 @@ SyntheticMouse.prototype.down = function(coordinates) {
268268
var doc = goog.dom.getOwnerDocument(element);
269269
this.viewPortOffset = goog.dom.getDomHelper(doc).getDocumentScroll();
270270

271-
// TODO(simon): This implementation isn't good enough. Again
272-
// Defaults to left mouse button, which is right.
273-
//this.buttonDown = bot.Mouse.Button.LEFT;
274-
//var botCoords = {
275-
// 'clientX': coordinates['x'] + pos.x,
276-
// 'clientY': coordinates['y'] + pos.y,
277-
// 'button': bot.Mouse.Button.LEFT
278-
//};
279-
//this.addEventModifierKeys(botCoords);
280-
//bot.events.fire(element, bot.events.EventType.MOUSEDOWN, botCoords);
281-
282271
this.lastElement = element;
283272

284273
return SyntheticMouse.newResponse(bot.ErrorCode.SUCCESS, 'ok');
@@ -292,21 +281,6 @@ SyntheticMouse.prototype.up = function(coordinates) {
292281

293282
this.getMouse_().releaseButton();
294283

295-
//var doc = goog.dom.getOwnerDocument(element);
296-
//var pos = goog.style.getClientPosition(element);
297-
298-
// TODO(simon): This implementation isn't good enough. Again
299-
// Defaults to left mouse button, which is the correct one.
300-
//var button = this.buttonDown;
301-
//var botCoords = {
302-
// 'clientX': coordinates['x'] + pos.x,
303-
// 'clientY': coordinates['y'] + pos.y,
304-
// 'button': button
305-
//};
306-
//this.addEventModifierKeys(botCoords);
307-
//bot.events.fire(element, bot.events.EventType.MOUSEMOVE, botCoords);
308-
//bot.events.fire(element, bot.events.EventType.MOUSEUP, botCoords);
309-
310284
this.buttonDown = null;
311285
this.isButtonPressed = false;
312286
this.viewPortOffset.x = 0;

0 commit comments

Comments
 (0)