Make a small documentation change.

This commit is contained in:
Brad Dunbar
2012-03-19 15:45:44 -04:00
parent 384f38b193
commit 33be5c62b8
2 changed files with 3 additions and 4 deletions

View File

@@ -873,8 +873,8 @@
return (''+string).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\//g,'&#x2F;');
};
// If the value of the named property is a function then invoke it.
// Otherwise, return its value.
// If the value of the named property is a function then invoke it;
// otherwise, return it.
_.result = function(object, property) {
if (object == null) return null;
var value = object[property];