Closed (fixed)
Project:
Linkit
Version:
7.x-2.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2012 at 18:04 UTC
Updated:
19 Jan 2012 at 05:20 UTC
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 :-)