diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js index 981706bac1..18f65cf5b0 100755 --- a/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js @@ -157,7 +157,7 @@ ve.ui.MWMediaSearchWidget.prototype.onMediaQueryDone = function ( source, data ) return; } - var page, title, + var page, title, items = [], pages = data.query.pages, value = this.query.getValue(); diff --git a/modules/ve/dm/ve.dm.InternalList.js b/modules/ve/dm/ve.dm.InternalList.js index 398c0a12c9..e7a6f5233d 100644 --- a/modules/ve/dm/ve.dm.InternalList.js +++ b/modules/ve/dm/ve.dm.InternalList.js @@ -243,7 +243,7 @@ ve.dm.InternalList.prototype.convertToData = function ( converter, doc ) { * and the new item's index within the list */ ve.dm.InternalList.prototype.getItemInsertion = function ( groupName, key, data ) { - var tx, itemData, + var tx, itemData, index = this.getKeyIndex( groupName, key ); if ( index === undefined ) {