Created
April 20, 2015 10:12
-
-
Save okdas/4c5478a12cdb66db94fe to your computer and use it in GitHub Desktop.
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
(-> res = []; res.push val for val in (data.map (e) -> e.triggerid) when val not in res; res) | |
.forEach (triggerid) -> | |
$rootScope.$broadcast 'event:new', (data.filter (event) -> if event.triggerid is triggerid then yes else no)[-1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment