Skip to content

Instantly share code, notes, and snippets.

@odoe
Created May 18, 2015 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/9ba2868979a027abcc22 to your computer and use it in GitHub Desktop.
Save odoe/9ba2868979a027abcc22 to your computer and use it in GitHub Desktop.
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