implement Y.*Binding approach

This commit is contained in:
Kevin Jahns
2018-01-29 10:30:21 -08:00
parent 41a88dbc43
commit 94f6a0fd9c
6 changed files with 66 additions and 4 deletions

View File

@@ -22,6 +22,8 @@ import { addStruct as addType } from './Util/structReferences.js'
import debug from 'debug'
import Transaction from './Transaction.js'
import TextareaBinding from './Binding/TextareaBinding.js'
export default class Y extends NamedEventHandler {
constructor (room, opts, persistence) {
super()
@@ -197,6 +199,8 @@ Y.XmlFragment = YXmlFragment
Y.XmlText = YXmlText
Y.XmlHook = YXmlHook
Y.TextareaBinding = TextareaBinding
Y.utils = {
BinaryDecoder,
UndoManager,