mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:08:01 +08:00
Remove Discourse.transient. Use a singleton for session data, it's a lot cleaner.
This commit is contained in:
@ -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')) + " - ";
|
||||
}
|
||||
|
Reference in New Issue
Block a user