Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[Themes] Removed waiting until to app is ready to apply themes in order to get ri... #8419

Merged
merged 4 commits into from
Jul 16, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/extensibility/ExtensionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,12 @@ define(function (require, exports, module) {
* Verifies if an extension is a theme based on the presence of the field "theme"
* in the package.json. If it is a theme, then the theme file is just loaded by the
* ThemeManager
*
* @param {string} id of the theme extension to load
*/
function loadTheme(id) {
var extension = extensions[id];
if ( extension.installInfo && extension.installInfo.metadata && extension.installInfo.metadata.theme ) {
if (extension.installInfo && extension.installInfo.metadata && extension.installInfo.metadata.theme) {
ThemeManager.loadPackage(extension.installInfo);
}
}
Expand Down
Loading