Code Duplication    Length = 18-18 lines in 2 locations

js/jquery-ui.js 2 locations

@@ 6887-6904 (lines=18) @@
6884
6885
			first = (ts || bs || ls || rs);
6886
6887
			if (o.snapMode !== "outer") {
6888
				ts = Math.abs(t - y1) <= d;
6889
				bs = Math.abs(b - y2) <= d;
6890
				ls = Math.abs(l - x1) <= d;
6891
				rs = Math.abs(r - x2) <= d;
6892
				if (ts) {
6893
					ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top;
6894
				}
6895
				if (bs) {
6896
					ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
6897
				}
6898
				if (ls) {
6899
					ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left;
6900
				}
6901
				if (rs) {
6902
					ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
6903
				}
6904
			}
6905
6906
			if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
6907
				(inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
@@ 6866-6883 (lines=18) @@
6863
				continue;
6864
			}
6865
6866
			if (o.snapMode !== "inner") {
6867
				ts = Math.abs(t - y2) <= d;
6868
				bs = Math.abs(b - y1) <= d;
6869
				ls = Math.abs(l - x2) <= d;
6870
				rs = Math.abs(r - x1) <= d;
6871
				if (ts) {
6872
					ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
6873
				}
6874
				if (bs) {
6875
					ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top;
6876
				}
6877
				if (ls) {
6878
					ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
6879
				}
6880
				if (rs) {
6881
					ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left;
6882
				}
6883
			}
6884
6885
			first = (ts || bs || ls || rs);
6886