Merge pull request #1679 from RobertAKARobin/next

Put Stream in IIFE so variables aren't global
This commit is contained in:
Pierre-Yves Gérardy 2017-03-04 16:36:15 +01:00 committed by GitHub
commit fe793ff548

View file

@ -1,5 +1,7 @@
"use strict"
new function() {
var guid = 0, HALT = {}
function createStream() {
function stream() {
@ -115,3 +117,5 @@ createStream.HALT = HALT
if (typeof module !== "undefined") module["exports"] = createStream
else if (typeof window.m === "function" && !("stream" in window.m)) window.m.stream = createStream
else window.m = {stream : createStream}
}