diff --git a/collections/aggregations/index.html b/collections/aggregations/index.html index c171598..a2b5204 100644 --- a/collections/aggregations/index.html +++ b/collections/aggregations/index.html @@ -10,9 +10,8 @@

Example output:

- - + \ No newline at end of file diff --git a/collections/aggregations/propertyFormatter.js b/collections/aggregations/propertyFormatter.js deleted file mode 100644 index 632fafb..0000000 --- a/collections/aggregations/propertyFormatter.js +++ /dev/null @@ -1,39 +0,0 @@ -var propertyFormatter = (function() { - "use strict"; - - return { - extractPropertiesForDisplay: function(source) { - if (!source || source.id !== +source.id) { - return []; - } - - return _.map(source, function(value, key) { - var isDate = typeof value === 'object' && value instanceof Date; - if (isDate || typeof value === 'boolean' || typeof value === 'number' || - typeof value === 'string') { - return "Property: " + key + " of type: " + typeof value + " has value: " + value; - } - return "Property: " + key + " cannot be displayed."; - }); - }, - extractAllPropertiesForDisplay: function(source) { - if (!source || source.id !== +source.id) { - return []; - } - - return _.reduce(source, function(memo,value, key) { - if(memo && memo !== "") - { - memo += "
"; - } - var isDate = typeof value === 'object' && value instanceof Date; - if (isDate || typeof value === 'boolean' || typeof value === 'number' || - typeof value === 'string') { - return memo + "Property: " + key + " of type: " + typeof value + " has value: " + value; - } - return memo + "Property: " + key + " cannot be displayed."; - }, - ""); - } - }; -}());