FIX: Broken private message search context.

This commit is contained in:
Guo Xiang Tan 2015-08-14 11:45:17 +08:00
parent b8cf797e31
commit 87fd70cd4a
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ export default Em.Controller.extend({
return Ember.get(searchContext, 'type');
}
},
set(key, value) {
set(value, searchContext) {
// a bit hacky, consider cleaning this up, need to work through all observers though
const context = $.extend({}, this.get('searchContext'));
const context = $.extend({}, searchContext);
context.type = value;
this.set('searchContext', context);
return this.get('searchContext.type');