Make 'moment' a dependency of just 'mwimage', not all of VE-MW

Change-Id: I23c193bfb34203aa6f2ef1d3633c208e5c692c97
This commit is contained in:
Ed Sanders 2015-11-17 14:55:10 -08:00
parent c895ba38b1
commit b5c16ac95c
3 changed files with 4 additions and 3 deletions

View file

@ -19,7 +19,6 @@
"globals": {
"mw": false,
"moment": false,
"OO": false,
"QUnit": false,
"unicodeJS": false,

View file

@ -430,7 +430,6 @@
"mediawiki.util",
"user.options",
"user.tokens",
"moment",
"ext.visualEditor.base",
"ext.visualEditor.track",
"ext.visualEditor.targetLoader",
@ -1221,7 +1220,8 @@
],
"dependencies": [
"ext.visualEditor.mwimage.core",
"mediawiki.ForeignStructuredUpload.BookletLayout"
"mediawiki.ForeignStructuredUpload.BookletLayout",
"moment"
],
"messages": [
"visualeditor-dialog-media-alttext-section",

View file

@ -5,6 +5,8 @@
* @license The MIT License (MIT); see LICENSE.txt
*/
/*global moment */
/**
* MWMediaInfoFieldWidget widget for displaying media information from the API.
*