From 812cb9aa2c8506572c0189597cf96f25fe0c6848 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 17 Mar 2015 17:38:29 -0700 Subject: [PATCH] Unbreak TargetLoader when ViewPageTarget.init isn't present By lazy-initializing mw.libs.ve Change-Id: I2fea8a0935b43b5a25287f68bd7487c448d006b6 --- modules/ve-mw/init/ve.init.mw.TargetLoader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ve-mw/init/ve.init.mw.TargetLoader.js b/modules/ve-mw/init/ve.init.mw.TargetLoader.js index 46284149b9..ae33263509 100644 --- a/modules/ve-mw/init/ve.init.mw.TargetLoader.js +++ b/modules/ve-mw/init/ve.init.mw.TargetLoader.js @@ -39,6 +39,8 @@ } } + mw.libs.ve = mw.libs.ve || {}; + mw.libs.ve.targetLoader = { /** * Add a plugin module or callback.