fix hook binding

This commit is contained in:
Kevin Jahns 2018-04-26 14:07:12 +02:00
parent 1fe37c565e
commit e788ad1333

View File

@ -1,4 +1,5 @@
import YMap from '../YMap/YMap.js'
import { createAssociation } from '../../Bindings/DomBinding/util.js'
/**
* You can manage binding to a custom type with YXmlHook.
@ -52,6 +53,7 @@ export default class YXmlHook extends YMap {
dom = document.createElement(this.hookName)
}
dom.dataset.yjsHook = this.hookName
createAssociation(binding, dom, this)
return dom
}