diff --git a/component/Bubbles.js b/component/Bubbles.js index 11936cc..be231e7 100644 --- a/component/Bubbles.js +++ b/component/Bubbles.js @@ -51,7 +51,7 @@ function Bubbles(container, self, options) { // navigate "answers" this.answer = function(key){ - var func = function(key){ typeof window[key] === "function" ? eval(key)() : false; } + var func = function(key){ typeof window[key] === "function" ? window[key]() : false; } this.convo[key] !== undefined ? this.reply(this.convo[key]) : func(key); }; diff --git a/component/start-here/hello.html b/component/start-here/hello.html index 55865c2..a7cc93e 100644 --- a/component/start-here/hello.html +++ b/component/start-here/hello.html @@ -41,7 +41,7 @@ "reply": [ { "question": "👍", - "answer" : "start" + "answer" : "functionTwo" }, { "question": "What for? 🤔",