Created
August 9, 2012 08:40
-
-
Save avanderhoorn/3302393 to your computer and use it in GitHub Desktop.
Glimpse Client Side Plugin 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
var glimpseClientTimelinePlugin = (function ($, glimpse) { | |
var //Support | |
wireListener = function () { | |
glimpse.pubsub.subscribe('action.timeline.data.updated', function(topic, payload) { dataUpdated(payload); }); | |
}, | |
dataUpdated = function(data) { | |
alert('test'); | |
}, | |
//Main | |
init = function () { | |
wireListener(); | |
}; | |
init(); | |
}($Glimpse, glimpse)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment