From d6e82dcb2a08dd49ea363c48a5bd8cb14ef82f19 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 5 Apr 2012 17:45:20 +0300 Subject: [PATCH] Fix mystery bug when building docs app. It took hours to track this down... and I'm out of ideas of why we need to require this class over there. --- template/app/view/Comments.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/template/app/view/Comments.js b/template/app/view/Comments.js index bbca64a6..accef09e 100644 --- a/template/app/view/Comments.js +++ b/template/app/view/Comments.js @@ -3,7 +3,16 @@ */ Ext.define('Docs.view.Comments', { singleton: true, - requires: ['Docs.view.auth.LoginHelper'], + requires: [ + 'Docs.view.auth.LoginHelper', + // WTF! + // When I don't add this line then "sencha create jsb" command + // will fail. But this class shouldn't require that class, + // and indeed, when running in browser, the app will work just + // fine, but when doing e.g. "rake gem" something goes wrong + // and the "sencha create jsb" command just hangs. + 'Docs.view.auth.Login' + ], constructor: function() { var numComments = [ -- GitLab