Created
November 29, 2012 14:05
-
-
Save curtislacy/4169298 to your computer and use it in GitHub Desktop.
Dead-Simple output of translated documents
This file contains 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
function DocumentCacheService() { | |
var self = this; | |
EventService.on( 'document::translated', function( data ) { | |
/////////// This is the line you have to add. //////////////// | |
console.log( data ); | |
/////////// That's all. //////////////// | |
self.addDocument( data ); | |
}); | |
EventService.on( 'account::remove', function( data ) { | |
self.removeAccount( data.owner, data.accountId ); | |
} ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment