I have tried to wrap a plug-in that we are using in a directive. This has 
worked well. Then we tried to use the directive wrapper in a ngRepeat. 
Suddenly the plug-in stopped working. After stepping through the plug-ins 
code it appears that the problem is that the plug-in relies on sticking 
data into the element and retrieving it later.

After I logged the results of

$(element).data();

for both elements appearing in the repeater and outside the repeater the 
difference was that the element inside the repeater had no data and then 
one outside still had its data. I see that the transclude function passes 
in a clone. I read in the JQuery docs that by default data and events are 
not copied. But I couldn't manage to find if angular.js is using its own 
clone method or the JQuery one and whether or not it is in fact cloning 
data and events.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to