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

can.Observe.List attr doesn't trigger live binding

$
0
0
So I have an Observe.List of string:

  1. var ol = can.Observe.List(['foo', 'bar', 'foobar'])
and I insert this in an ejs template:
  1. <%ol.each(function(el,i){ %> el <%}%>
This updates fine if I change the length of the list, but it doesn't update with
  1. ol.attr(0, 'updated');
I have to use a workaround:
  1. ol.splice(0,1,'updated')
And I'm not very pleased by this solution, did I miss something ?



Viewing all articles
Browse latest Browse all 3491

Trending Articles