First attempt to create a panel based windows system
Change-Id: I2b6fb4cb147518d661dbccb3bd5f8e093b63bf55
diff --git a/dev/js/src/match/info.js b/dev/js/src/match/info.js
index 628659f..655535f 100644
--- a/dev/js/src/match/info.js
+++ b/dev/js/src/match/info.js
@@ -3,7 +3,7 @@
*/
/*
* TODO:
- * Create a "views" object, that is the parent of this
+ * Create a "panel" object, that is the parent of this
* class and supports a simple .add() method to add views
* to an element.
*/
@@ -60,34 +60,6 @@
/**
- * Open the information view,
- * if closed, otherwise close.
- */
- /*
- toggle : function () {
-
- var elem = this._match.element();
-
- if (this.opened == true) {
- elem.removeChild(
- this.element()
- );
- this.opened = false;
- }
- else {
- // Append element to match
- elem.appendChild(
- this.element()
- );
- this.opened = true;
- };
-
- return this.opened;
- },
- */
-
-
- /**
* Retrieve and parse snippet for table
* representation
*/
@@ -419,6 +391,9 @@
},
// Add action button
+ // TODO:
+ // These are view-buttons that should be added to
+ // the view and not to the panel!
_addButton : function (buttonType, element, cb) {
// TODO: Unless existent
var actions = document.createElement('ul');