Created
May 18, 2015 17:48
-
-
Save odoe/9ba2868979a027abcc22 to your computer and use it in GitHub Desktop.
This file contains 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
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