Release preparation, documentation, fixing vc bugs
diff --git a/dev/js/src/match/info.js b/dev/js/src/match/info.js
index c47f5ae..b75e713 100644
--- a/dev/js/src/match/info.js
+++ b/dev/js/src/match/info.js
@@ -12,7 +12,7 @@
matchTreeClass,
matchTreeMenuClass) {
- // TODO: Make this async
+ // Override
KorAP.API.getMatchInfo = KorAP.API.getMatchInfo || function () {
KorAP.log(0, 'KorAP.API.getMatchInfo() not implemented')
return {};
@@ -20,10 +20,11 @@
var loc = KorAP.Locale;
- /**
- * Create new object
- */
return {
+
+ /**
+ * Create new match object
+ */
create : function (match) {
return Object.create(this)._init(match);
},
@@ -44,6 +45,11 @@
return this._match;
},
+
+ /**
+ * Open the information view,
+ * if closed, otherwise close.
+ */
toggle : function () {
if (this.opened == true) {
this._match.element().children[0].removeChild(
@@ -64,7 +70,8 @@
/**
- * Retrieve and parse snippet for table representation
+ * Retrieve and parse snippet for table
+ * representation
*/
getTable : function (tokens, cb) {
var focus = [];