Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created August 22, 2017 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/bf9281bc06561cd374ed79d87987c6fe to your computer and use it in GitHub Desktop.
Save goofmint/bf9281bc06561cd374ed79d87987c6fe to your computer and use it in GitHub Desktop.
var observableArray = new ObservableArray;
function logger(e) {
console.log(e);
$('#result').val(`${$('#result').val()}\n,change event. Name is ${e.data.name}`);
}
// この処理の内容がイベント通知に使われます
$('#update').on('click', function(e) {
observableArray.updateName($('#value').val());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment