Fix typo: change Postion to Position
This commit is contained in:
parent
a4a0034b29
commit
b06025b626
|
@ -286,7 +286,7 @@ Capybara = {
|
||||||
this.trigger(index, "change");
|
this.trigger(index, "change");
|
||||||
},
|
},
|
||||||
|
|
||||||
centerPostion: function(element) {
|
centerPosition: function(element) {
|
||||||
this.reflow(element);
|
this.reflow(element);
|
||||||
var rect = element.getBoundingClientRect();
|
var rect = element.getBoundingClientRect();
|
||||||
var position = {
|
var position = {
|
||||||
|
@ -320,7 +320,7 @@ Capybara = {
|
||||||
|
|
||||||
dragTo: function (index, targetIndex) {
|
dragTo: function (index, targetIndex) {
|
||||||
var element = this.nodes[index], target = this.nodes[targetIndex];
|
var element = this.nodes[index], target = this.nodes[targetIndex];
|
||||||
var position = this.centerPostion(element);
|
var position = this.centerPosition(element);
|
||||||
var options = {
|
var options = {
|
||||||
clientX: position.x,
|
clientX: position.x,
|
||||||
clientY: position.y
|
clientY: position.y
|
||||||
|
@ -335,7 +335,7 @@ Capybara = {
|
||||||
options.clientY += 1;
|
options.clientY += 1;
|
||||||
mouseTrigger('mousemove', options);
|
mouseTrigger('mousemove', options);
|
||||||
|
|
||||||
position = this.centerPostion(target);
|
position = this.centerPosition(target);
|
||||||
options = {
|
options = {
|
||||||
clientX: position.x,
|
clientX: position.x,
|
||||||
clientY: position.y
|
clientY: position.y
|
||||||
|
|
Loading…
Reference in New Issue