Put Stream in IIFE so variables aren't global

...when imported into the browser via <script> tags.
This commit is contained in:
RobertAKARobin 2017-03-03 20:41:29 -06:00
parent dc875fdbd3
commit 23e4a57114

View file

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