Skip to content
This repository

Support to add updateAll #208

Open
balu980 opened this Issue · 1 comment

2 participants

Balasubramanian markbauer1975
Balasubramanian

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

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.