0
はriot.jsJavaScriptのArray観察
と組み合わせて(、ARRコールバック)を観察しかし、私は私の配列を観察しようとすると、私はArray.observeが機能ではありません取得します。
Array.observe(this.nodes, function (changes)
{
//do some stuff
tag.update();
});
エラー
Uncaught TypeError: Array.observe is not a function(…)(anonymous function)
@components/breadcrumb-navigation.tag.js:3(anonymous function)
@ riot+compiler.js:1604(anonymous function)
@ riot+compiler.js:1719each
@ riot+compiler.js:1921toggle
@ riot+compiler.js:1719(anonymous function)
@ riot+compiler.js:1610mountTo
@ riot+compiler.js:2417pushTags
@ riot+compiler.js:2557each
@ riot+compiler.js:1921pushTags
@ riot+compiler.js:2561riot.mount
@ riot+compiler.js:2612(anonymous function)
@ riot+compiler.js:3497done
@ riot+compiler.js:3414compileTag
@ riot+compiler.js:3421GET.req.onreadystatechange
@ riot+compiler.js:3381
私は週前にこの関数を使用しましたが、正常に動作します。だから、今日私はこの行動を少し混乱させた – Fesco