From c22a544c896d2c430a1531eba5fa78ac868352e0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 14 Nov 2013 05:55:46 +0000 Subject: [PATCH] Fix JSHint errors (again) for revisions.js. props adamsilverstein. fixes #25955. git-svn-id: https://develop.svn.wordpress.org/trunk@26162 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/revisions.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/wp-admin/js/revisions.js b/src/wp-admin/js/revisions.js index d96b42c612..26b22cf259 100644 --- a/src/wp-admin/js/revisions.js +++ b/src/wp-admin/js/revisions.js @@ -1,4 +1,4 @@ -/*global _, Backbone, _wpRevisionsSettings, isRtl */ +/* global _wpRevisionsSettings, isRtl */ window.wp = window.wp || {}; (function($) { @@ -954,15 +954,15 @@ 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, - leftDragBoundary = view.$el.offset().left, - sliderOffset = leftDragBoundary, - sliderRightEdge = leftDragBoundary + view.$el.width(), - rightDragBoundary = sliderRightEdge, - leftDragReset = '0', - rightDragReset = '100%', - handles, - handle = $( ui.handle ); + var handles, + view = e.data.view, + leftDragBoundary = view.$el.offset().left, + sliderOffset = leftDragBoundary, + sliderRightEdge = leftDragBoundary + view.$el.width(), + rightDragBoundary = sliderRightEdge, + leftDragReset = '0', + rightDragReset = '100%', + handle = $( ui.handle ); // In two handle mode, ensure handles can't be dragged past each other. // Adjust left/right boundaries and reset points.