FEATURE: Automatically force a full refresh between pages if assets change

This commit is contained in:
Sam
2014-01-14 16:59:08 +11:00
parent 224a34316f
commit fd95dbe75a
6 changed files with 38 additions and 3 deletions

View File

@ -128,7 +128,18 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
}
});
}
}
},
assetVersion: function(prop, val) {
if(val) {
if(this.get("currentAssetVersion")){
this.set("desiredAssetVersion", val);
} else {
this.set("currentAssetVersion", val);
}
}
return this.get("currentAssetVersion");
}.property()
});