From 8f33c9ea595bb06f345d65735005ef9fd9397910 Mon Sep 17 00:00:00 2001 From: Michael Jett Date: Wed, 13 Jan 2016 14:11:21 -0500 Subject: [PATCH] Allow plugins to alter file icons This change will allow developers to change CSS classes of file icons and add additional file types. --- plugins/c9.core/util.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/c9.core/util.js b/plugins/c9.core/util.js index 048e26ce..34f17ae2 100644 --- a/plugins/c9.core/util.js +++ b/plugins/c9.core/util.js @@ -375,7 +375,16 @@ define(function(require, exports, module) { setTimeout(callback, 17); }; - plugin.freezePublicAPI({}); + plugin.freezePublicAPI({ + /** + * @ignore + */ + get supportedIcons(){ return SupportedIcons; }, + /** + * @ignore + */ + set supportedIcons(value){ SupportedIcons = value; } + }); register(null, { util: plugin