Code Duplication    Length = 30-30 lines in 2 locations

assets/js/jquery-ui.js 2 locations

@@ 2260-2289 (lines=30) @@
2257
2258
			first = ( ts || bs || ls || rs );
2259
2260
			if ( o.snapMode !== "outer" ) {
2261
				ts = Math.abs( t - y1 ) <= d;
2262
				bs = Math.abs( b - y2 ) <= d;
2263
				ls = Math.abs( l - x1 ) <= d;
2264
				rs = Math.abs( r - x2 ) <= d;
2265
				if ( ts ) {
2266
					ui.position.top = inst._convertPositionTo( "relative", {
2267
						top: t,
2268
						left: 0
2269
					} ).top;
2270
				}
2271
				if ( bs ) {
2272
					ui.position.top = inst._convertPositionTo( "relative", {
2273
						top: b - inst.helperProportions.height,
2274
						left: 0
2275
					} ).top;
2276
				}
2277
				if ( ls ) {
2278
					ui.position.left = inst._convertPositionTo( "relative", {
2279
						top: 0,
2280
						left: l
2281
					} ).left;
2282
				}
2283
				if ( rs ) {
2284
					ui.position.left = inst._convertPositionTo( "relative", {
2285
						top: 0,
2286
						left: r - inst.helperProportions.width
2287
					} ).left;
2288
				}
2289
			}
2290
2291
			if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
2292
				( inst.options.snap.snap &&
@@ 2227-2256 (lines=30) @@
2224
				continue;
2225
			}
2226
2227
			if ( o.snapMode !== "inner" ) {
2228
				ts = Math.abs( t - y2 ) <= d;
2229
				bs = Math.abs( b - y1 ) <= d;
2230
				ls = Math.abs( l - x2 ) <= d;
2231
				rs = Math.abs( r - x1 ) <= d;
2232
				if ( ts ) {
2233
					ui.position.top = inst._convertPositionTo( "relative", {
2234
						top: t - inst.helperProportions.height,
2235
						left: 0
2236
					} ).top;
2237
				}
2238
				if ( bs ) {
2239
					ui.position.top = inst._convertPositionTo( "relative", {
2240
						top: b,
2241
						left: 0
2242
					} ).top;
2243
				}
2244
				if ( ls ) {
2245
					ui.position.left = inst._convertPositionTo( "relative", {
2246
						top: 0,
2247
						left: l - inst.helperProportions.width
2248
					} ).left;
2249
				}
2250
				if ( rs ) {
2251
					ui.position.left = inst._convertPositionTo( "relative", {
2252
						top: 0,
2253
						left: r
2254
					} ).left;
2255
				}
2256
			}
2257
2258
			first = ( ts || bs || ls || rs );
2259