Remove Discourse.transient. Use a singleton for session data, it's a lot cleaner.

This commit is contained in:
Robin Ward
2013-07-26 14:59:28 -04:00
parent fca83cb185
commit 773823c41f
10 changed files with 88 additions and 43 deletions

View File

@ -10,9 +10,6 @@
Discourse = Ember.Application.createWithMixins({
rootElement: '#main',
// Data we want to remember for a short period
transient: Em.Object.create(),
// Whether the app has focus or not
hasFocus: true,
@ -69,8 +66,7 @@ Discourse = Ember.Application.createWithMixins({
}),
titleChanged: function() {
var title;
title = "";
var title = "";
if (this.get('title')) {
title += "" + (this.get('title')) + " - ";
}