From 925cbd7fbbf116d42af9c99376063c9ca5af0220 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Mon, 29 Oct 2012 14:48:27 +0200 Subject: [PATCH] Add missing dependencies for sencha cmd. Various classes were not directly listed with the requires statement. Additionally Sencha command complained about being unable to find Ext.JSON, so excluding this, as it's within the ext core anyway. --- template/app/Application.js | 16 +++++++++++++++- template/app/Auth.js | 1 - template/app/controller/Search.js | 1 + template/app/model/Setting.js | 1 + template/app/store/Settings.js | 1 + 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/template/app/Application.js b/template/app/Application.js index 291ca3cf..c60c89ad 100644 --- a/template/app/Application.js +++ b/template/app/Application.js @@ -11,7 +11,21 @@ Ext.define('Docs.Application', { 'Docs.History', 'Docs.Comments', 'Docs.Settings', - 'Docs.view.Viewport' + 'Docs.view.Viewport', + + 'Docs.controller.Auth', + 'Docs.controller.Welcome', + 'Docs.controller.Failure', + 'Docs.controller.Classes', + 'Docs.controller.Search', + 'Docs.controller.InlineExamples', + 'Docs.controller.Examples', + 'Docs.controller.Guides', + 'Docs.controller.Videos', + 'Docs.controller.Tabs', + 'Docs.controller.Comments', + 'Docs.controller.CommentCounts', + 'Docs.controller.Tests' ], constructor: function() { diff --git a/template/app/Auth.js b/template/app/Auth.js index 41ae8e39..a2f48032 100644 --- a/template/app/Auth.js +++ b/template/app/Auth.js @@ -5,7 +5,6 @@ Ext.define('Docs.Auth', { singleton: true, requires: [ 'Ext.Ajax', - 'Ext.JSON', 'Ext.util.Cookies' ], diff --git a/template/app/controller/Search.js b/template/app/controller/Search.js index 2ebeaff3..0e8d8c80 100644 --- a/template/app/controller/Search.js +++ b/template/app/controller/Search.js @@ -6,6 +6,7 @@ Ext.define('Docs.controller.Search', { requires: [ 'Docs.ClassRegistry', + 'Docs.store.Search', 'Docs.History' ], diff --git a/template/app/model/Setting.js b/template/app/model/Setting.js index ac51b5fd..a20f1ebe 100644 --- a/template/app/model/Setting.js +++ b/template/app/model/Setting.js @@ -4,6 +4,7 @@ Ext.define('Docs.model.Setting', { fields: ['id', 'key', 'value'], extend: 'Ext.data.Model', + requires: ['Ext.data.proxy.LocalStorage'], proxy: { type: window['localStorage'] ? 'localstorage' : 'memory', id: Docs.data.localStorageDb + '-settings' diff --git a/template/app/store/Settings.js b/template/app/store/Settings.js index 96603380..602b19b4 100644 --- a/template/app/store/Settings.js +++ b/template/app/store/Settings.js @@ -3,5 +3,6 @@ */ Ext.define('Docs.store.Settings', { extend: 'Ext.data.Store', + requires: ['Docs.model.Setting'], model: 'Docs.model.Setting' }); -- GitLab