mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
a564f81aa7
* "onevar" warning sometimes solved by just merging var statements other times solved by making it a function declaration instead of a function expression. * Also fixed several '_this' variable names in ve.es.Surface to more descriptive names, and enabled warnings for dangling _ in identifiers. Change-Id: I7d411881e3e06cf9a7fe56d689c29375881a81de
24 lines
545 B
JavaScript
24 lines
545 B
JavaScript
/*global mw */
|
|
|
|
/**
|
|
* VisualEditor User Interface namespace.
|
|
*
|
|
* All classes and functions will be attached to this object to keep the global namespace clean.
|
|
*/
|
|
ve.ui = {
|
|
// Path to UI assets for direct loading
|
|
'stylesheetPath': 'extensions/VisualEditor/modules/ve/ui/styles/'
|
|
};
|
|
|
|
/*
|
|
* @method static
|
|
* Returns UI stylesheet path
|
|
*/
|
|
ve.ui.getStylesheetPath = function() {
|
|
if ( 'mw' in window ) {
|
|
return mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules/ve/ui/styles/';
|
|
} else {
|
|
return ve.ui.stylesheetPath;
|
|
}
|
|
};
|