The picture should be a bit left, $(this) is empty. I suspect it’s because of the missing template, I generate the HTML via tagName. Is there a way to solve this without using a template?
The picture should be a bit left, $(this) is empty. I suspect it’s because
Share
The issue here is that you’re trying to change the position before the element has been created. This happens because the RunLoop batches together property changes and triggers them before rendering. In this case, I would add a
didInsertElementfunction which also calls the update method. See http://jsfiddle.net/wagenet/T4NJh/6/.