add toBinary and fromBinary to Y.utils
This commit is contained in:
parent
94f6a0fd9c
commit
40e913e9c5
6
src/Y.js
6
src/Y.js
@ -24,6 +24,8 @@ import Transaction from './Transaction.js'
|
|||||||
|
|
||||||
import TextareaBinding from './Binding/TextareaBinding.js'
|
import TextareaBinding from './Binding/TextareaBinding.js'
|
||||||
|
|
||||||
|
import { toBinary, fromBinary } from './MessageHandler/binaryEncode.js'
|
||||||
|
|
||||||
export default class Y extends NamedEventHandler {
|
export default class Y extends NamedEventHandler {
|
||||||
constructor (room, opts, persistence) {
|
constructor (room, opts, persistence) {
|
||||||
super()
|
super()
|
||||||
@ -207,7 +209,9 @@ Y.utils = {
|
|||||||
getRelativePosition,
|
getRelativePosition,
|
||||||
fromRelativePosition,
|
fromRelativePosition,
|
||||||
addType,
|
addType,
|
||||||
integrateRemoteStructs
|
integrateRemoteStructs,
|
||||||
|
toBinary,
|
||||||
|
fromBinary
|
||||||
}
|
}
|
||||||
|
|
||||||
Y.debug = debug
|
Y.debug = debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user