Merge "Make generateCitationFeatures() not explode when citation code isn't loaded"

This commit is contained in:
jenkins-bot 2014-03-25 18:46:22 +00:00 committed by Gerrit Code Review
commit cf56fbd0c4

View file

@ -761,6 +761,11 @@ ve.init.mw.Target.onSerializeError = function ( jqXHR, status, error ) {
ve.init.mw.Target.prototype.generateCitationFeatures = function () {
var i, len, item, name, tool, tools, dialog;
if ( !ve.ui.MWCitationDialog ) {
// Citation module isn't loaded, so skip this
return;
}
/*jshint loopfunc:true */
try {