Created
          December 28, 2014 14:29 
        
      - 
      
- 
        Save khadorkin/446d10bb805b11d3f5ae to your computer and use it in GitHub Desktop. 
    Dev tools snippet
  
        
  
    
      This file contains hidden or 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 watchMe = {}; | |
| Object.observe(watchMe, function(options) { | |
| options.forEach(function(option) { | |
| var groupName = option.name + ' changed'; | |
| console.groupCollapsed(groupName); | |
| console.log('Old value: ', option.oldValue); | |
| console.log('New value: ', option.object[option.name]); | |
| console.groupEnd(groupName); | |
| }); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment