Created
May 27, 2015 18:05
-
-
Save jmarnold/061cff2d70687ede5214 to your computer and use it in GitHub Desktop.
projection example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
matches: function(evt) { | |
return evt.type === 'workspace:updated'; | |
}, | |
dependencies: function(evt) { | |
return { | |
workspace: evt.data.workspaceId | |
}; | |
}, | |
execute: function(evt, context) { | |
var workspace = context.workspace; | |
workspace[evt.data.property] = evt.data.value; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment