Skip to content

Commit

Permalink
damme store changes!
Browse files Browse the repository at this point in the history
  • Loading branch information
diervo committed Sep 19, 2012
1 parent e1f56d9 commit 73b4543
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions lib/app/autoload/store.client.js
Expand Up @@ -150,13 +150,8 @@ YUI.add('mojito-client-store', function(Y, NAME) {
// just fine.
url = this.staticPrefix + '/' + typeName + '/specs/' + specName +
'.json';
url += '?' + Y.QueryString.stringify(context);
url = this.buildUrl(url, context);

// this is mainly used by html5app
if (this.appConfig.pathToRoot) {
url = this.appConfig.pathToRoot + url;
}
url = this.buildUrl(url, context);

// use the compiled version if there was one built
if (isCompiled(ns, specName)) {
Expand All @@ -168,6 +163,7 @@ YUI.add('mojito-client-store', function(Y, NAME) {
retrieveFile(url, callback);
},


/*
* TODO: REVIEW RE [Issue 77]
*/
Expand All @@ -179,13 +175,8 @@ YUI.add('mojito-client-store', function(Y, NAME) {
// just fine.
var type = spec.name,
url = this.staticPrefix + '/' + type + '/definition.json';
url += '?' + Y.QueryString.stringify(context);
url = this.buildUrl(url, context);

// this is mainly used by html5app
if (this.appConfig.pathToRoot) {
url = this.appConfig.pathToRoot + url;
}
url = this.buildUrl(url, context);

retrieveFile(url, callback);
},
Expand Down

0 comments on commit 73b4543

Please sign in to comment.