From b06025b626a755413fd64d2a6bf8b87003ba00cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petteri=20R=C3=A4ty?= Date: Wed, 30 Jan 2013 14:06:59 +0200 Subject: [PATCH] Fix typo: change Postion to Position --- src/capybara.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/capybara.js b/src/capybara.js index 83ebfa7..fe09b99 100644 --- a/src/capybara.js +++ b/src/capybara.js @@ -286,7 +286,7 @@ Capybara = { this.trigger(index, "change"); }, - centerPostion: function(element) { + centerPosition: function(element) { this.reflow(element); var rect = element.getBoundingClientRect(); var position = { @@ -320,7 +320,7 @@ Capybara = { dragTo: function (index, targetIndex) { var element = this.nodes[index], target = this.nodes[targetIndex]; - var position = this.centerPostion(element); + var position = this.centerPosition(element); var options = { clientX: position.x, clientY: position.y @@ -335,7 +335,7 @@ Capybara = { options.clientY += 1; mouseTrigger('mousemove', options); - position = this.centerPostion(target); + position = this.centerPosition(target); options = { clientX: position.x, clientY: position.y