当前版本的 JsPlumb 位于 Jquery、YUI 或 MooTools 之上。我有一个要求,我需要编写用于将 jsPlumb 与 Dojo gfx 连接的适配器。
我检查了jsPlumb的源代码,找到了所有三个(Jquery、YUI 和 MooTools)的适配器
the library specific functions, such as find offset, get id, get attribute, extend etc.
* the full list is:
*
* addClass adds a class to the given element
* animate calls the underlying library's animate functionality
* appendElement appends a child element to a parent element.
* bind binds some event to an element
...
...
有人可以指出,用特定于dojo的方法调用替换所有列出的调用有多难?在编写这些方法时我需要考虑什么?