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 || {};
|
window.wp = window.wp || {};
|
||||||
|
|
||||||
(function($) {
|
(function($) {
|
||||||
|
@ -954,14 +954,14 @@ 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,
|
||||||
|
view = e.data.view,
|
||||||
leftDragBoundary = view.$el.offset().left,
|
leftDragBoundary = view.$el.offset().left,
|
||||||
sliderOffset = leftDragBoundary,
|
sliderOffset = leftDragBoundary,
|
||||||
sliderRightEdge = leftDragBoundary + view.$el.width(),
|
sliderRightEdge = leftDragBoundary + view.$el.width(),
|
||||||
rightDragBoundary = sliderRightEdge,
|
rightDragBoundary = sliderRightEdge,
|
||||||
leftDragReset = '0',
|
leftDragReset = '0',
|
||||||
rightDragReset = '100%',
|
rightDragReset = '100%',
|
||||||
handles,
|
|
||||||
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.
|
||||||
|
|
Loading…
Reference in New Issue