PIE icon indicating copy to clipboard operation
PIE copied to clipboard

Support to add updateAll

Open balu980 opened this issue 12 years ago • 1 comments

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() } } }

balu980 avatar Mar 29 '12 16:03 balu980

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)

markbauer1975 avatar Apr 17 '12 16:04 markbauer1975