lojjic / PIE

A behavior for Internet Explorer allowing it to recognize and render various CSS3 box decoration properties
http://css3pie.com
Other
2.79k stars 235 forks source link

Support to add updateAll #208

Open balu980 opened 12 years ago

balu980 commented 12 years ago

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

markbauer1975 commented 12 years ago

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)