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:
Andrew Nacin 2013-11-14 05:56:09 +00:00
parent a5d83b489b
commit 118caf7373
1 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/*global _, Backbone, _wpRevisionsSettings, isRtl */ /* global _wpRevisionsSettings, isRtl */
window.wp = window.wp || {}; window.wp = window.wp || {};
(function($) { (function($) {
@ -954,15 +954,15 @@ window.wp = window.wp || {};
// Track the mouse position to enable smooth dragging, // Track the mouse position to enable smooth dragging,
// overrides default jQuery UI step behavior. // overrides default jQuery UI step behavior.
$( window ).on( 'mousemove.wp.revisions', { view: this }, function( e ) { $( window ).on( 'mousemove.wp.revisions', { view: this }, function( e ) {
var view = e.data.view, var handles,
leftDragBoundary = view.$el.offset().left, view = e.data.view,
sliderOffset = leftDragBoundary, leftDragBoundary = view.$el.offset().left,
sliderRightEdge = leftDragBoundary + view.$el.width(), sliderOffset = leftDragBoundary,
rightDragBoundary = sliderRightEdge, sliderRightEdge = leftDragBoundary + view.$el.width(),
leftDragReset = '0', rightDragBoundary = sliderRightEdge,
rightDragReset = '100%', leftDragReset = '0',
handles, rightDragReset = '100%',
handle = $( ui.handle ); handle = $( ui.handle );
// In two handle mode, ensure handles can't be dragged past each other. // In two handle mode, ensure handles can't be dragged past each other.
// Adjust left/right boundaries and reset points. // Adjust left/right boundaries and reset points.