mediawiki-extensions-Visual.../modules/ve/ui/ve.ui.js
Trevor Parscal a564f81aa7 JSHint: Added dotfiles and fixed tons of linting warnings.
* "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
2012-07-19 10:01:00 -07:00

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;
}
};