Merge pull request #1679 from RobertAKARobin/next
Put Stream in IIFE so variables aren't global
This commit is contained in:
commit
fe793ff548
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() {
|
||||
|
|
@ -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}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue