aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorTrey Hunner <treyhunner@gmail.com>2012-02-27 08:48:17 -0800
committerScott González <scott.gonzalez@gmail.com>2012-02-27 12:04:30 -0500
commit9d6e94faf4030fd287120098d7395463d8acb698 (patch)
tree8c9614dccc8853778f6083f2cca517c1fc63b200 /ui/jquery.ui.draggable.js
parent1d2fcaddadbb1ad313e3d7c5018f2fd9f31ce1e0 (diff)
downloadjquery-ui-9d6e94faf4030fd287120098d7395463d8acb698.tar.gz
jquery-ui-9d6e94faf4030fd287120098d7395463d8acb698.zip
Use hard tabs for indentation consistently
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r--ui/jquery.ui.draggable.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index ccc1fe81b..62864454d 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -370,7 +370,7 @@ $.widget("ui.draggable", $.ui.mouse, {
];
if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
- var c = $(o.containment);
+ var c = $(o.containment);
var ce = c[0]; if(!ce) return;
var co = c.offset();
var over = ($(ce).css("overflow") != 'hidden');
@@ -424,18 +424,18 @@ $.widget("ui.draggable", $.ui.mouse, {
*/
if(this.originalPosition) { //If we are not dragging yet, we won't check for options
- var containment;
- if(this.containment) {
- if (this.relative_container){
- var co = this.relative_container.offset();
- containment = [ this.containment[0] + co.left,
- this.containment[1] + co.top,
- this.containment[2] + co.left,
- this.containment[3] + co.top ];
- }
- else {
- containment = this.containment;
- }
+ var containment;
+ if(this.containment) {
+ if (this.relative_container){
+ var co = this.relative_container.offset();
+ containment = [ this.containment[0] + co.left,
+ this.containment[1] + co.top,
+ this.containment[2] + co.left,
+ this.containment[3] + co.top ];
+ }
+ else {
+ containment = this.containment;
+ }
if(event.pageX - this.offset.click.left < containment[0]) pageX = containment[0] + this.offset.click.left;
if(event.pageY - this.offset.click.top < containment[1]) pageY = containment[1] + this.offset.click.top;