11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vue.js v0.10.4の変更点まとめ

Last updated at Posted at 2014-04-28

New

  • templateから生成されるDocumentFragmentをDOMとして扱えるようになったので、tableやoptionのpropertyを扱えるようになった
vm = new Vue({
	el: "#main",
    template: "<tr><td>xxxx</td></tr>" 
});
console.log(vm.$el.firstChild.tagName);

// v0.10.3
// undefined

// v0.10.4
// TR
  • SVG要素をtemplateに指定したときに proper namespaceが設定されるようになった
vm = new Vue({
	el: "#main",
    template: '<circle fill="red" cx="30" cy="30" r="20"/>'
});
console.log(vm.$el.firstChild.namespaceURI);

// jsfiddle

// v0.10.3
// http://www.w3.org/1999/xhtml 

// v0.10.4
// http://www.w3.org/2000/svg 

Changed

  • v-repeatで配列の中がpremitiveな値の時に、$valueの値を変更しても元の配列には反映されなくなった

Fixed

#213

  • v-repeatで使っている配列をspliceで全部要素削除したときに、配列とのバインディングが解除されてるみたいなissueぽいけど、そんなことはなくて保持されてる。
    • fiddleの意味がちょっとわからなかった

#234

  • Changedにあるpremitiveな値の時の挙動について

#239

  • vue.jsが$dispatchなどのイベント系の処理で、パフォーマンス上の理由からapplyでなくてcallで引数の数を3つで固定していたのをapplyでやるようになった。(applyEmit)
callbacks[i].call(this._ctx, a, b, c)

#242

  • directive内で使うメソッドの引数でオブジェクト形式のparamをサポートしてないことに対するissue
<a v-on='click: sortRows({ column: "name" })'>Name</a>

#247

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?