PIE
PIE copied to clipboard
Support to add updateAll
HI
In our project we use a lot of dynamic rendering, as a result most of the components in the page position and reposition @ runtime. adding the -pie-poll(recalculate every 250 mSec) for all the items is a performance hit in the page.
all I require is the update all the PIE after completing render of the dynamic content. Since I know exactly, when I render new content on the page, I just require another method like updateAll to update all the elements
Element.updateAll = function () { if (wrappers) { for (var wrapper in wrappers) { wrappers[wrapper].update() } } }
I just crawled thu the PIE source and wrote this same function 15 minutes ago, came here to suggest it and I see I'm not the first one to do it..
It fixes my problem for PIE updating some menu tabs.. The only difference from the code above is I had to make it force the update (pass true to update fn)
Element.updateAll = function () { if (wrappers) { for (var wrapper in wrappers) { wrappers[wrapper].update(true) } } }
(Thanks for PIE btw)