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).

CommentFileSizeAuthor
linkit-behaviors.patch517 byteskarlshea

Comments

anon’s picture

Status: Active » Fixed

Thanks, commited this fix.

karlshea’s picture

Thanks much :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.