Cleanup match info data
Change-Id: I815cf976fbb78223968274fa4955a52f708a03dc
diff --git a/dev/js/src/util.js b/dev/js/src/util.js
index d803a9d..719c889 100644
--- a/dev/js/src/util.js
+++ b/dev/js/src/util.js
@@ -33,6 +33,15 @@
};
+HTMLElement.prototype.addE = function (tag) {
+ return this.appendChild(document.createElement(tag));
+};
+
+HTMLElement.prototype.addT = function (text) {
+ return this.appendChild(document.createTextNode(text));
+};
+
+
// Utility for removing all children of a node
function _removeChildren (node) {
// Remove everything underneath
@@ -40,6 +49,7 @@
node.removeChild(node.firstChild);
};
+
// Utility to get either the charCode
// or the keyCode of an event
function _codeFromEvent (e) {