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"
|
"use strict"
|
||||||
|
|
||||||
|
new function() {
|
||||||
|
|
||||||
var guid = 0, HALT = {}
|
var guid = 0, HALT = {}
|
||||||
function createStream() {
|
function createStream() {
|
||||||
function stream() {
|
function stream() {
|
||||||
|
|
@ -115,3 +117,5 @@ createStream.HALT = HALT
|
||||||
if (typeof module !== "undefined") module["exports"] = createStream
|
if (typeof module !== "undefined") module["exports"] = createStream
|
||||||
else if (typeof window.m === "function" && !("stream" in window.m)) window.m.stream = createStream
|
else if (typeof window.m === "function" && !("stream" in window.m)) window.m.stream = createStream
|
||||||
else window.m = {stream : createStream}
|
else window.m = {stream : createStream}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue