Last active
August 29, 2015 14:13
-
-
Save ksol/9fa58d3ee44418971dd6 to your computer and use it in GitHub Desktop.
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 a = null; | |
| var b; // undefined | |
| a.get('myprop') | |
| // Uncaught TypeError: Cannot read property 'get' of null | |
| Ember.get(a, 'myprop'); | |
| // <- undefined | |
| Ember.get(b, 'myprop'); | |
| // Uncaught EmberError: Assertion Failed: Cannot call get with 'myprop' on an undefined object. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment