Skip to content

Instantly share code, notes, and snippets.

@tenntenn
Created December 4, 2012 14:33
Show Gist options
  • Save tenntenn/4204526 to your computer and use it in GitHub Desktop.
Save tenntenn/4204526 to your computer and use it in GitHub Desktop.
binding.js
var a = sb.observable(10);
var b = sb.observable(a());
// バインディング
sb.binding().sync(a,b).bind();
// a -> bの通知が走りbも100になる。
a(100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment