angular/angular.js — pull request #9023 by someatoms (2014-09-10 22:15:31+00:00)
Title: Improved check if the getter/setter method was called as a getter or setter.

If I have understood the example correct the angular.isDefined(newName) is used to determine if the method was called as a getter or setter. However sometimes the the argument might be called with undefined (for example when the user empties an input field with type date). Maybe an improvement would be to check this with arguments > 0 so that the example can be modified and used in all situations? http://stackoverflow.com/questions/25775852/angular-getter-setter-with-an-argument-that-can-be-undefined