Skip to content

Instantly share code, notes, and snippets.

@odoe
Created May 18, 2015
Embed
What would you like to do?
define([
'rx/rx'
], function(Rx) {
if (!_subject) {
var _subject = new Rx.Subject();
}
return {
subject: _subject,
update: function(data) {
_subject.onNext(data);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment