Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Update function name and cache $
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdsayed committed Nov 15, 2017
1 parent 026839a commit da511c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/customize-snapshots.js
@@ -1,8 +1,8 @@
/* global wp, $ */
/* global wp, jQuery */
/* eslint consistent-this: [ "error", "snapshot", "control" ] */
/* eslint no-magic-numbers: ["error", { "ignore": [0, 1] }] */

(function( api ) {
(function( api, $ ) {
'use strict';

api.Snapshots = api.Class.extend( {
Expand Down Expand Up @@ -204,12 +204,12 @@
link.attr( 'href', value );
} );

control.toggleEditLinkControl();
control.toggleInspectChangesetControl();
api.state( 'changesetStatus' ).bind( function() {
control.toggleEditLinkControl();
control.toggleInspectChangesetControl();
} );
},
toggleEditLinkControl: function() {
toggleInspectChangesetControl: function() {
this.active.set( ! _.contains( [ '', 'auto-draft' ], api.state( 'changesetStatus' ).get() ) );
}
} );
Expand Down Expand Up @@ -261,4 +261,4 @@
}
} );

})( wp.customize );
})( wp.customize, jQuery );

0 comments on commit da511c4

Please sign in to comment.