From: Mike Taylor Date: Thu, 27 Mar 2014 13:17:26 +0000 (+0000) Subject: Insert semicolons after all statements of the form X-Git-Tag: 1.0.0~1155 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=c2b2c85103cd0ff40d8c121af9abdc7da2cb28ec Insert semicolons after all statements of the form mkws.FN = function(args) { ... } Missing them off is usually all right, but when it goes wrong (as when I missed the semi-colon from the end of the recently-moved mkws.log definition) it goes catastrophically wrong and is very hard to debug. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index 233a77f..7a260f2 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -110,11 +110,11 @@ mkws.log = function(string) { mkws.registerWidgetType = function(name, fn) { mkws.widgetType2function[name] = fn; log("registered widget-type '" + name + "'"); - } + }; mkws.promotionFunction = function(name) { return mkws.widgetType2function[name]; - } + }; function handleNodeWithTeam(node, callback) { @@ -181,39 +181,39 @@ mkws.log = function(string) { // this module. mkws.switchView = function(tname, view) { mkws.teams[tname].switchView(view); - } + }; mkws.showDetails = function(tname, prefixRecId) { mkws.teams[tname].showDetails(prefixRecId); - } + }; mkws.limitTarget = function(tname, id, name) { mkws.teams[tname].limitTarget(id, name); - } + }; mkws.limitQuery = function(tname, field, value) { mkws.teams[tname].limitQuery(field, value); - } + }; mkws.delimitTarget = function(tname, id) { mkws.teams[tname].delimitTarget(id); - } + }; mkws.delimitQuery = function(tname, field, value) { mkws.teams[tname].delimitQuery(field, value); - } + }; mkws.showPage = function(tname, pageNum) { mkws.teams[tname].showPage(pageNum); - } + }; mkws.pagerPrev = function(tname) { mkws.teams[tname].pagerPrev(); - } + }; mkws.pagerNext = function(tname) { mkws.teams[tname].pagerNext(); - } + }; function defaultMkwsConfig() {