<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[26195] trunk/src/wp-includes/js: Fix JSHint errors in six files.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/26195">26195</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2013-11-15 04:41:51 +0000 (Fri, 15 Nov 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Fix JSHint errors in six files.
props mdbitz.
fixes #<a href="http://core.trac.wordpress.org/ticket/26011">#26011</a>, <a href="http://core.trac.wordpress.org/ticket/26012">#26012</a>, <a href="http://core.trac.wordpress.org/ticket/26013">#26013</a>, <a href="http://core.trac.wordpress.org/ticket/26014">#26014</a>, <a href="http://core.trac.wordpress.org/ticket/26038">#26038</a>, <a href="http://core.trac.wordpress.org/ticket/26039">#26039</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesjscommentreplyjs">trunk/src/wp-includes/js/comment-reply.js</a></li>
<li><a href="#trunksrcwpincludesjscustomizebasejs">trunk/src/wp-includes/js/customize-base.js</a></li>
<li><a href="#trunksrcwpincludesjstinymcemark_loaded_srcjs">trunk/src/wp-includes/js/tinymce/mark_loaded_src.js</a></li>
<li><a href="#trunksrcwpincludesjswpauthcheckjs">trunk/src/wp-includes/js/wp-auth-check.js</a></li>
<li><a href="#trunksrcwpincludesjswplistsjs">trunk/src/wp-includes/js/wp-lists.js</a></li>
<li><a href="#trunksrcwpincludesjswppointerjs">trunk/src/wp-includes/js/wp-pointer.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesjscommentreplyjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/comment-reply.js (26194 => 26195)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/comment-reply.js 2013-11-15 04:30:26 UTC (rev 26194)
+++ trunk/src/wp-includes/js/comment-reply.js 2013-11-15 04:41:51 UTC (rev 26195)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-
-addComment = {
</del><ins>+var addComment = {
</ins><span class="cx"> moveForm : function(commId, parentId, respondId, postId) {
</span><span class="cx"> var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
</span><span class="cx">
</span><span class="lines">@@ -34,7 +33,7 @@
</span><span class="cx"> this.style.display = 'none';
</span><span class="cx"> this.onclick = null;
</span><span class="cx"> return false;
</span><del>- }
</del><ins>+ };
</ins><span class="cx">
</span><span class="cx"> try { t.I('comment').focus(); }
</span><span class="cx"> catch(e) {}
</span><span class="lines">@@ -45,4 +44,4 @@
</span><span class="cx"> I : function(e) {
</span><span class="cx"> return document.getElementById(e);
</span><span class="cx"> }
</span><del>-}
</del><ins>+};
</ins></span></pre></div>
<a id="trunksrcwpincludesjscustomizebasejs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/customize-base.js (26194 => 26195)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/customize-base.js 2013-11-15 04:30:26 UTC (rev 26194)
+++ trunk/src/wp-includes/js/customize-base.js 2013-11-15 04:41:51 UTC (rev 26195)
</span><span class="lines">@@ -129,14 +129,14 @@
</span><span class="cx"> return this;
</span><span class="cx"> },
</span><span class="cx">
</span><del>- bind: function( id, callback ) {
</del><ins>+ bind: function( id ) {
</ins><span class="cx"> this.topics = this.topics || {};
</span><span class="cx"> this.topics[ id ] = this.topics[ id ] || $.Callbacks();
</span><span class="cx"> this.topics[ id ].add.apply( this.topics[ id ], slice.call( arguments, 1 ) );
</span><span class="cx"> return this;
</span><span class="cx"> },
</span><span class="cx">
</span><del>- unbind: function( id, callback ) {
</del><ins>+ unbind: function( id ) {
</ins><span class="cx"> if ( this.topics && this.topics[ id ] )
</span><span class="cx"> this.topics[ id ].remove.apply( this.topics[ id ], slice.call( arguments, 1 ) );
</span><span class="cx"> return this;
</span><span class="lines">@@ -209,12 +209,12 @@
</span><span class="cx"> return value;
</span><span class="cx"> },
</span><span class="cx">
</span><del>- bind: function( callback ) {
</del><ins>+ bind: function() {
</ins><span class="cx"> this.callbacks.add.apply( this.callbacks, arguments );
</span><span class="cx"> return this;
</span><span class="cx"> },
</span><span class="cx">
</span><del>- unbind: function( callback ) {
</del><ins>+ unbind: function() {
</ins><span class="cx"> this.callbacks.remove.apply( this.callbacks, arguments );
</span><span class="cx"> return this;
</span><span class="cx"> },
</span></span></pre></div>
<a id="trunksrcwpincludesjstinymcemark_loaded_srcjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/tinymce/mark_loaded_src.js (26194 => 26195)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/tinymce/mark_loaded_src.js 2013-11-15 04:30:26 UTC (rev 26194)
+++ trunk/src/wp-includes/js/tinymce/mark_loaded_src.js 2013-11-15 04:41:51 UTC (rev 26195)
</span><span class="lines">@@ -1,3 +1,4 @@
</span><ins>+/* global tinyMCEPreInit, tinymce */
</ins><span class="cx"> (function(){
</span><span class="cx"> if ( typeof tinyMCEPreInit === 'undefined' )
</span><span class="cx"> return;
</span><span class="lines">@@ -14,7 +15,7 @@
</span><span class="cx"> if ( plugin && plugin.charAt(0) != '-' ) {
</span><span class="cx"> markDone( baseurl+'/plugins/'+plugin+'/editor_plugin'+suffix+'.js' );
</span><span class="cx"> markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'.js' );
</span><del>- markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' )
</del><ins>+ markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' );
</ins><span class="cx"> }
</span><span class="cx"> });
</span><span class="cx"> })();
</span></span></pre></div>
<a id="trunksrcwpincludesjswpauthcheckjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/wp-auth-check.js (26194 => 26195)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/wp-auth-check.js 2013-11-15 04:30:26 UTC (rev 26194)
+++ trunk/src/wp-includes/js/wp-auth-check.js 2013-11-15 04:41:51 UTC (rev 26195)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><ins>+/* global adminpage */
</ins><span class="cx"> // Interim login dialog
</span><span class="cx"> (function($){
</span><del>- var wrap, check, next;
</del><ins>+ var wrap, next;
</ins><span class="cx">
</span><span class="cx"> function show() {
</span><span class="cx"> var parent = $('#wp-auth-check'), form = $('#wp-auth-check-form'), noframe = wrap.find('.wp-auth-fallback-expired'), frame, loaded = false;
</span><span class="lines">@@ -12,7 +13,7 @@
</span><span class="cx"> });
</span><span class="cx">
</span><span class="cx"> frame = $('<iframe id="wp-auth-check-frame" frameborder="0">').attr( 'title', noframe.text() );
</span><del>- frame.load( function(e) {
</del><ins>+ frame.load( function() {
</ins><span class="cx"> var height, body;
</span><span class="cx">
</span><span class="cx"> loaded = true;
</span><span class="lines">@@ -67,8 +68,8 @@
</span><span class="cx"> $(window).off( 'beforeunload.wp-auth-check' );
</span><span class="cx">
</span><span class="cx"> // When on the Edit Post screen, speed up heartbeat after the user logs in to quickly refresh nonces
</span><del>- if ( typeof adminpage != 'undefined' && ( adminpage == 'post-php' || adminpage == 'post-new-php' )
- && typeof wp != 'undefined' && wp.heartbeat ) {
</del><ins>+ if ( typeof adminpage != 'undefined' && ( adminpage == 'post-php' || adminpage == 'post-new-php' ) &&
+ typeof wp != 'undefined' && wp.heartbeat ) {
</ins><span class="cx">
</span><span class="cx"> wp.heartbeat.interval( 'fast', 1 );
</span><span class="cx"> }
</span><span class="lines">@@ -98,7 +99,7 @@
</span><span class="cx"> }).ready( function() {
</span><span class="cx"> schedule();
</span><span class="cx"> wrap = $('#wp-auth-check-wrap');
</span><del>- wrap.find('.wp-auth-check-close').on( 'click', function(e) {
</del><ins>+ wrap.find('.wp-auth-check-close').on( 'click', function() {
</ins><span class="cx"> hide();
</span><span class="cx"> });
</span><span class="cx"> });
</span></span></pre></div>
<a id="trunksrcwpincludesjswplistsjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/wp-lists.js (26194 => 26195)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/wp-lists.js 2013-11-15 04:30:26 UTC (rev 26194)
+++ trunk/src/wp-includes/js/wp-lists.js 2013-11-15 04:41:51 UTC (rev 26195)
</span><span class="lines">@@ -1,3 +1,4 @@
</span><ins>+/* global ajaxurl, wpAjax */
</ins><span class="cx"> (function($) {
</span><span class="cx"> var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList;
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcwpincludesjswppointerjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/wp-pointer.js (26194 => 26195)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/wp-pointer.js 2013-11-15 04:30:26 UTC (rev 26194)
+++ trunk/src/wp-includes/js/wp-pointer.js 2013-11-15 04:41:51 UTC (rev 26195)
</span><span class="lines">@@ -1,3 +1,4 @@
</span><ins>+/* global wpPointerL10n */
</ins><span class="cx"> /**
</span><span class="cx"> * Pointer jQuery widget.
</span><span class="cx"> */
</span><span class="lines">@@ -5,11 +6,11 @@
</span><span class="cx"> var identifier = 0,
</span><span class="cx"> zindex = 9999;
</span><span class="cx">
</span><del>- $.widget("wp.pointer", {
</del><ins>+ $.widget('wp.pointer', {
</ins><span class="cx"> options: {
</span><span class="cx"> pointerClass: 'wp-pointer',
</span><span class="cx"> pointerWidth: 320,
</span><del>- content: function( respond, event, t ) {
</del><ins>+ content: function() {
</ins><span class="cx"> return $(this).text();
</span><span class="cx"> },
</span><span class="cx"> buttons: function( event, t ) {
</span><span class="lines">@@ -60,11 +61,11 @@
</span><span class="cx"> tip = this.pointer;
</span><span class="cx">
</span><span class="cx"> // Handle document transfer
</span><del>- if ( key === "document" && value !== o.document ) {
</del><ins>+ if ( key === 'document' && value !== o.document ) {
</ins><span class="cx"> tip.detach().appendTo( value.body );
</span><span class="cx">
</span><span class="cx"> // Handle class change
</span><del>- } else if ( key === "pointerClass" ) {
</del><ins>+ } else if ( key === 'pointerClass' ) {
</ins><span class="cx"> tip.removeClass( o.pointerClass ).addClass( value );
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -72,11 +73,11 @@
</span><span class="cx"> $.Widget.prototype._setOption.apply( this, arguments );
</span><span class="cx">
</span><span class="cx"> // Reposition automatically
</span><del>- if ( key === "position" ) {
</del><ins>+ if ( key === 'position' ) {
</ins><span class="cx"> this.reposition();
</span><span class="cx">
</span><span class="cx"> // Update content automatically if pointer is open
</span><del>- } else if ( key === "content" && this.active ) {
</del><ins>+ } else if ( key === 'content' && this.active ) {
</ins><span class="cx"> this.update();
</span><span class="cx"> }
</span><span class="cx"> },
</span><span class="lines">@@ -101,7 +102,7 @@
</span><span class="cx">
</span><span class="cx"> dfd.done( function( content ) {
</span><span class="cx"> self._update( event, content );
</span><del>- })
</del><ins>+ });
</ins><span class="cx">
</span><span class="cx"> // Either o.content is a string...
</span><span class="cx"> if ( typeof o.content === 'string' ) {
</span><span class="lines">@@ -235,11 +236,11 @@
</span><span class="cx">
</span><span class="cx"> this.active = true;
</span><span class="cx">
</span><del>- this._trigger( "open", event, this._handoff() );
</del><ins>+ this._trigger( 'open', event, this._handoff() );
</ins><span class="cx">
</span><del>- this._trigger( "show", event, this._handoff({
</del><ins>+ this._trigger( 'show', event, this._handoff({
</ins><span class="cx"> opened: function() {
</span><del>- self._trigger( "opened", event, self._handoff() );
</del><ins>+ self._trigger( 'opened', event, self._handoff() );
</ins><span class="cx"> }
</span><span class="cx"> }));
</span><span class="cx"> },
</span><span class="lines">@@ -251,15 +252,15 @@
</span><span class="cx"> var self = this;
</span><span class="cx"> this.active = false;
</span><span class="cx">
</span><del>- this._trigger( "close", event, this._handoff() );
- this._trigger( "hide", event, this._handoff({
</del><ins>+ this._trigger( 'close', event, this._handoff() );
+ this._trigger( 'hide', event, this._handoff({
</ins><span class="cx"> closed: function() {
</span><del>- self._trigger( "closed", event, self._handoff() );
</del><ins>+ self._trigger( 'closed', event, self._handoff() );
</ins><span class="cx"> }
</span><span class="cx"> }));
</span><span class="cx"> },
</span><span class="cx">
</span><del>- sendToTop: function( event ) {
</del><ins>+ sendToTop: function() {
</ins><span class="cx"> if ( this.active )
</span><span class="cx"> this.pointer.css( 'z-index', zindex++ );
</span><span class="cx"> },
</span></span></pre>
</div>
</div>
</body>
</html>