Put Stream in IIFE so variables aren't global
...when imported into the browser via <script> tags.
This commit is contained in:
parent
dc875fdbd3
commit
23e4a57114
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue