send project inside data on project change

This commit is contained in:
oleg 2015-09-27 10:57:53 +03:00
parent ed2e9cea4f
commit 2fe385bdb2
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ module.exports = function(app) {
getProject({condition: condition}, this.slot());
},
function(err, project) {
resource.clientEmitSync('change', project);
resource.clientEmitSync('change', {project: project});
},
function(err) {
console.error(

View File

@ -10,8 +10,8 @@ define([
listenables: ProjectActions,
project: null,
onChange: function(project, action) {
this.trigger(project);
onChange: function(data, action) {
this.trigger(data.project);
},
init: function() {