<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>terurou</author_name>
  <author_url>https://blog.hatena.ne.jp/terurou/</author_url>
  <blog_title>terurouメモ</blog_title>
  <blog_url>https://terurou.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>JsViews</anon>
    <anon>Typeahead.js</anon>
  </categories>
  <description>おそらくJsViewsに限った話ではなくて、双方向バインディングをやってくれるテンプレートエンジンなりフレームワーク全般にかかるであろう事案。 問題点 以下のイベント発火時に双方向バインディング（View -&gt; Model)が動作しない。 typeahead:autocompleted typeahead:selected 原因 上記イベントが発生する場合にchangeイベントが発火されないため、バインディングが動作しない。 対策 無理やりchangeイベントを発火する。 $(&quot;.suggest&quot;).on(&quot;typeahead:autocompleted&quot;, function (e) { $(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fterurou.hateblo.jp%2Fentry%2F2014%2F06%2F11%2F173505&quot; title=&quot;JsViewsとTypeahead.jsを併用するとバインディングが期待通りに動かない - terurouメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-11 17:35:05</published>
  <title>JsViewsとTypeahead.jsを併用するとバインディングが期待通りに動かない</title>
  <type>rich</type>
  <url>https://terurou.hateblo.jp/entry/2014/06/11/173505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
