mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix JSHint errors (again) for revisions.js.
props adamsilverstein. fixes #25955. Built from https://develop.svn.wordpress.org/trunk@26162 git-svn-id: http://core.svn.wordpress.org/trunk@26073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5d83b489b
commit
118caf7373
@ -1,4 +1,4 @@
|
||||
/*global _, Backbone, _wpRevisionsSettings, isRtl */
|
||||
/* global _wpRevisionsSettings, isRtl */
|
||||
window.wp = window.wp || {};
|
||||
|
||||
(function($) {
|
||||
@ -954,14 +954,14 @@ window.wp = window.wp || {};
|
||||
// Track the mouse position to enable smooth dragging,
|
||||
// overrides default jQuery UI step behavior.
|
||||
$( window ).on( 'mousemove.wp.revisions', { view: this }, function( e ) {
|
||||
var view = e.data.view,
|
||||
var handles,
|
||||
view = e.data.view,
|
||||
leftDragBoundary = view.$el.offset().left,
|
||||
sliderOffset = leftDragBoundary,
|
||||
sliderRightEdge = leftDragBoundary + view.$el.width(),
|
||||
rightDragBoundary = sliderRightEdge,
|
||||
leftDragReset = '0',
|
||||
rightDragReset = '100%',
|
||||
handles,
|
||||
handle = $( ui.handle );
|
||||
|
||||
// In two handle mode, ensure handles can't be dragged past each other.
|
||||
|
Loading…
Reference in New Issue
Block a user