Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 1 file changed
  • 2 comments
  • 2 contributors
Apr 25, 2012
imagiczhang imagiczhang Merge pull request #13 from eric-wang/master
add dojox.app.widgets.Container to dojox.app
3505c06
imagiczhang imagiczhang Merge pull request #14 from imagiczhang/master
add dojox.app.widgets.Container to dojox.app
58fc15c
Apr 27, 2012
eric-wang fix application level data store and data model issue.
Application level data store should be ready before view start.
d5f0691

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 main.js
7 main.js
@@ -115,11 +115,15 @@ function(lang, declare, Deferred, when, on, ready, baseWindow, dom, Model, View,
115 115
116 116 // load default view and setupControllers and startup the default view
117 117 start: function(){
  118 + //create application level data store
  119 + this.createDataStore(this.params);
  120 +
118 121 // create application template view
119 122 if(this.template){
120 123 this.view = new View({
121 124 id: this.id,
122 125 name: this.name,
  126 + models: this.models,
123 127 parent: this,
124 128 templateString: this.templateString,
125 129 definition: this.definition
@@ -143,9 +147,6 @@ function(lang, declare, Deferred, when, on, ready, baseWindow, dom, Model, View,
143 147 var hash = window.location.hash;
144 148 this._startView = ((hash && hash.charAt(0) == "#") ? hash.substr(1) : hash) || this.defaultView;
145 149
146   - //create application level data store
147   - this.createDataStore(this.params);
148   -
149 150 // create application level data model
150 151 var loadModelLoaderDeferred = new Deferred();
151 152 var createPromise;

Showing you all comments on commits in this comparison.

eric-wang
Owner

create data store before view start

eric-wang
Owner

mixin application level data model configuration to application level template view, so the view can create the data model before template rendering.

Something went wrong with that request. Please try again.