From 72e0127b3859296e2ef8e8bc2c911e62bf64dd95 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 30 Apr 2014 11:57:01 +0100 Subject: [PATCH] Add null widget definitions for Query, MOTDContainer, Button and Popup. These are all used in the code, but have no functionality of their own. --- src/mkws-widget-main.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 69d1360..05a1b91 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -413,3 +413,18 @@ mkws.registerWidgetType('MOTD', function() { }); +// Some elements have mkws* classes that makes them appear as widgets +// -- for example, because we want to style them using CSS -- but have +// no actual functionality. We register these to prevent ignorable +// warnings when they occur. + +mkws.registerWidgetType('Query', function() {}); +mkws.registerWidgetType('MOTDContainer', function() {}); +mkws.registerWidgetType('Button', function() {}); +mkws.registerWidgetType('Popup', function() {}); + +// Not sure whether the following should have functionality: +// Select HTMLFormElement +// TermlistContainer1 HTMLTableCellElement +// TermlistContainer2 HTMLDivElement +// Bytarget HTMLDivElement -- 1.7.10.4