I was trying to troubleshoot imagefield_crop and why JCrop wasn't getting attached after an AJAX call finished, and I saw several errors coming from linkit.js.
The behavior's attach function gets called several times with different contexts, and linkit wasn't checking to see if it could find the DOM element it needed before trying to operate on it.
I've attached a patch to fix the issue (3 line addition).
| Comment | File | Size | Author |
|---|---|---|---|
| linkit-behaviors.patch | 517 bytes | karlshea |
Comments
Comment #1
anonThanks, commited this fix.
Comment #2
karlsheaThanks much :-)