Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : How to change an observe inside of a compute?

$
0
0
Hopefully this will illustrate the point i'm trying to make:


I'm basically trying to filter the results into a new can.Observe.List for the template to use, so that when someone changes the filter, it edits the existing base list into a smaller list that is sent to the ejs.

When I add in the line:
paginate.attr('count', newList.length);

I start getting Maximum call stack errors in JSFiddle.  On my project, I just get the template redrawing several times.

What is the best way to update the count here without triggering the compute back over, or am I doing something wrong in another area?

Viewing all articles
Browse latest Browse all 3491

Trending Articles