Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   свой шаблон в стиле MVC (https://javascript.ru/forum/misc/37487-svojj-shablon-v-stile-mvc.html)

simple 21.04.2013 22:13

свой шаблон в стиле MVC
 
привет люди, вообщем изобретаю свой шаблон в стиле MVC , и хочу спросить вас на сколько правильно такая организация кода:
Grid.Model = function () {};
Grid.View = function () {};
Grid.Controler = function () {};

Grid.Model.prototype = {};
Grid.View.prototype = {};
Grid.Controler.prototype = {};

function Grid () {
   this.model = new Grid.Model();
   this.view = new Grid.View();
   this.controler = new Grid.Controler();
};

я на правильном пути?


Часовой пояс GMT +3, время: 15:57.