Skip to content

Commit

Permalink
Update lodestar-ractive.js
Browse files Browse the repository at this point in the history
  • Loading branch information
danjford committed Dec 28, 2015
1 parent 77f6a16 commit e7958c9
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions assets/js/lodestar-ractive.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,19 +712,22 @@ Published: Wed Dec 23 2015 00:40:31 GMT+0000 (GMT) */

if (isObject(options.view.template) && options.view.template.url) {

if (options.view.template.notOnSame && options.view.template.url === (window.LodeVar.previousPath || options.view.template.url)) {
if ( options.view.template.url === (window.LodeVar.previousPath || options.view.template.url) ) {

options.view.template = parser(document.getElementsByTagName('body')[0], options.view.template);

setup.call(this, options);
return;
}

loadPage(options.view.template).then(function (template) {

} else {

options.view.template = template;
setup.call(_this, options);
});
loadPage(options.view.template).then(function (template) {

options.view.template = template;
setup.call(_this, options);
});

}

} else {

setup.call(this, options);
Expand Down Expand Up @@ -773,4 +776,4 @@ Published: Wed Dec 23 2015 00:40:31 GMT+0000 (GMT) */

return LodeRactive;

}));
}));

0 comments on commit e7958c9

Please sign in to comment.