Always expose stream on m.stream, use unpkg for docs (#1535)

... and document how streams are exposed in when loaded as <script> in global context
This commit is contained in:
Patrik Johnson 2017-03-04 17:27:02 +02:00 committed by Pierre-Yves Gérardy
parent dc875fdbd3
commit 59ed3c7d48
2 changed files with 10 additions and 1 deletions

View file

@ -113,4 +113,5 @@ createStream.combine = combine
createStream.HALT = HALT
if (typeof module !== "undefined") module["exports"] = createStream
else window.stream = createStream
else if (typeof window.m === "function" && !("stream" in window.m)) window.m.stream = createStream
else window.m = {stream : createStream}