Skip to content

Instantly share code, notes, and snippets.

@avanderhoorn
Created August 9, 2012 08:40
Show Gist options
  • Save avanderhoorn/3302393 to your computer and use it in GitHub Desktop.
Save avanderhoorn/3302393 to your computer and use it in GitHub Desktop.
Glimpse Client Side Plugin Example
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