Skip to content

Commit

Permalink
Fixed binding default topics to amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
uluhonolulu authored and jmarnold committed Jul 6, 2012
1 parent 3400f60 commit 9396e92
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -21,8 +21,10 @@
var topics = ['AjaxStarted', 'AjaxCompleted', 'ContinuationError'];
for(var i = 0; i < topics.length; i++) {
var topic = topics[i];
continuations.bind(topic, function(payload) {
amplify.publish(topic, payload);
});
continuations.bind(topic, (function (topicScoped) {
return function(payload) {
amplify.publish(topicScoped, payload);
};
})(topic));
}
}(jQuery.continuations));

0 comments on commit 9396e92

Please sign in to comment.