changed import method
This commit is contained in:
Binary file not shown.
@@ -113,5 +113,8 @@ createIwcConnector = (callback, initial_user_id)->
|
||||
|
||||
undefined
|
||||
module.exports = createIwcConnector
|
||||
window?.createIwcConnector = createIwcConnector
|
||||
if window?
|
||||
if not window.Y?
|
||||
window.Y = {}
|
||||
window.Y.createIwcConnector = createIwcConnector
|
||||
|
||||
|
||||
@@ -76,5 +76,8 @@ createPeerJsConnector = (callback)->
|
||||
|
||||
|
||||
module.exports = createPeerJsConnector
|
||||
window?.createPeerJsConnector = createPeerJsConnector
|
||||
if window?
|
||||
if not window.Y?
|
||||
window.Y = {}
|
||||
window.Y.createPeerJsConnector = createPeerJsConnector
|
||||
|
||||
|
||||
@@ -81,5 +81,9 @@ class JsonYatta
|
||||
@val(o_name, o_obj, 'immutable')
|
||||
else
|
||||
throw new Error "You must only set Object values!"
|
||||
window?.JsonYatta = JsonYatta
|
||||
|
||||
module.exports = JsonYatta
|
||||
if window?
|
||||
if not window.Y?
|
||||
window.Y = {}
|
||||
window.Y.JsonYatta = JsonYatta
|
||||
|
||||
@@ -80,3 +80,7 @@ class TextYatta
|
||||
|
||||
|
||||
module.exports = TextYatta
|
||||
if window?
|
||||
if not window.Y?
|
||||
window.Y = {}
|
||||
window.Y.TextYatta = TextYatta
|
||||
|
||||
@@ -54,7 +54,7 @@ class HistoryBuffer
|
||||
|
||||
for u_name,user of @buffer
|
||||
for o_number,o of user
|
||||
if not isNaN(parseInt(o_number)) and unknown(u_name, o_number)
|
||||
if (not isNaN(parseInt(o_number))) and unknown(u_name, o_number)
|
||||
o_json = o._encode()
|
||||
if o.next_cl?
|
||||
o_next = o.next_cl
|
||||
|
||||
Reference in New Issue
Block a user