commit | 56a11af61d847c0a2d106a16bbdfef762f5dc03b | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Fri Jul 27 18:28:45 2018 +0200 |
committer | Akron <nils@diewald-online.de> | Fri Jul 27 18:28:45 2018 +0200 |
tree | 89cf41b9d4d3a28e2c30f5a9b9395bcef8c41960 | |
parent | bb901a87e56bdc67032d076116bda03252692053 [diff] |
Added widget to test suite Change-Id: I8698fd2cabc788b275d9fbb2b5af2a2e0742e9c0
diff --git a/dev/js/src/plugin/widget.js b/dev/js/src/plugin/widget.js index dbdeee9..b8aa49e 100644 --- a/dev/js/src/plugin/widget.js +++ b/dev/js/src/plugin/widget.js
@@ -22,6 +22,8 @@ // Initialize widget _init : function (name, src, id) { + if (!name || !src || !id) + throw Error("Widget not well defined"); this.name = name; this.src = src; this.id = id;