Created
March 12, 2015 14:21
-
-
Save OliDM/1fda6cb71269aab4c8d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var model = {}; | |
// Which we then observe | |
Object.observe(model, function(changes){ | |
// This asynchronous callback runs | |
changes.forEach(function(change) { | |
// Letting us know what changed | |
console.log(change.type, change.name, change.oldValue); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment