mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Remove/fix a few small pieces of unused code"
This commit is contained in:
commit
028658a4e1
|
@ -70,7 +70,8 @@ setInterval( function () {
|
|||
// Do nothing
|
||||
}
|
||||
}
|
||||
liveSignatures = updatedSignatures;
|
||||
// Stop updating signatures that failed once
|
||||
ve.ce.MWSignatureNode.static.liveSignatures = updatedSignatures;
|
||||
}, 60 * 1000 );
|
||||
|
||||
/* Methods */
|
||||
|
|
|
@ -32,8 +32,6 @@ ve.dm.MWWikitextSurfaceFragment.prototype.hasMatchingAncestor = function ( type,
|
|||
nodes = this.getSelectedLeafNodes(),
|
||||
all = !!nodes.length;
|
||||
|
||||
nodes = this.getSelectedLeafNodes();
|
||||
all = !!nodes.length;
|
||||
for ( i = 0, len = nodes.length; i < len; i++ ) {
|
||||
text = this.document.data.getText( false, nodes[ i ].getRange() );
|
||||
// TODO: Use a registry to do this matching
|
||||
|
|
|
@ -280,7 +280,7 @@ ve.ui.MWAceEditorWidget.prototype.selectRange = function ( from, to ) {
|
|||
|
||||
function offsetToPos( offset ) {
|
||||
var row = 0,
|
||||
col = 0,
|
||||
col,
|
||||
pos = 0;
|
||||
|
||||
while ( row < lines.length && pos + lines[ row ].length < offset ) {
|
||||
|
|
|
@ -294,7 +294,7 @@ ve.ui.MWCategoryWidget.prototype.getCategories = function () {
|
|||
ve.ui.MWCategoryWidget.prototype.queryCategoryStatus = function ( categoryNames ) {
|
||||
var widget = this,
|
||||
promises = [], index = 0, batchSize = 50,
|
||||
categoryNamesToQuery = [];
|
||||
categoryNamesToQuery;
|
||||
|
||||
// Get rid of any we already know the hidden status of, or have an entry
|
||||
// if normalizedTitles (i.e. have been fetched before)
|
||||
|
|
|
@ -85,7 +85,7 @@ ve.ui.MWTemplateTitleInputWidget.prototype.getLookupRequest = function () {
|
|||
redirects = ( response.query && response.query.redirects ) || {},
|
||||
origPages = ( response.query && response.query.pages ) || {},
|
||||
newPages = [],
|
||||
titles = [];
|
||||
titles;
|
||||
|
||||
// Build a new array to replace response.query.pages, ensuring everything goes into
|
||||
// the order defined by the page's index key, instead of whatever random order the
|
||||
|
|
Loading…
Reference in a new issue