From 550ed551ea30803deaf0f7ccaffc07efe7a4d25d Mon Sep 17 00:00:00 2001 From: kbparagua Date: Thu, 24 Oct 2013 17:39:37 +0800 Subject: [PATCH] Don't halt when no Paloma controller is found --- vendor/assets/javascripts/paloma/engine.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vendor/assets/javascripts/paloma/engine.js b/vendor/assets/javascripts/paloma/engine.js index e808150..44a160b 100644 --- a/vendor/assets/javascripts/paloma/engine.js +++ b/vendor/assets/javascripts/paloma/engine.js @@ -29,18 +29,22 @@ var Controller = this.factory.get(controllerName); if (!Controller){ - return console.warn('Paloma: undefined controller -> ' + controllerName); + console.warn('Paloma: undefined controller -> ' + controllerName); + continue; } var controller = new Controller(request.params); if (!controller[action]){ - return console.warn('Paloma: undefined action <' + action + - '> for <' + controllerName + '> controller'); + console.warn('Paloma: undefined action <' + action + + '> for <' + controllerName + '> controller'); + continue; } controller[action](); } + + this.restart(); }; @@ -58,4 +62,4 @@ Paloma.Engine = Engine; -})(window.Paloma); \ No newline at end of file +})(window.Paloma);