kseamon / fast-bind

Alternatives to AngularJS's built-in bindings that avoid taxing the digest cycle
MIT License
83 stars 10 forks source link

fast-bind-attr-once not working on 1st item in the list #8

Open NoelOConnell opened 10 years ago

NoelOConnell commented 10 years ago

Hi - Firstly I'd like to thank you for these directives. They've removed hundreds of watchers off some of my heavier pages.

I have found a small issue with the 'fastBindAttrOnce' directive. I have a list of users and I tried to use that directive to remove the watcher for their profile pic. However, for some reason the first user is always missing a picture.

I've created a Plunker here to demo the issue. Could anyone share any light onto why this is happening.

http://plnkr.co/edit/u33lpq3YpoeHPmltwZwb?p=preview

The example repeats 1-5 but only 4 images appear with the first image missing again.

Thanks