diff --git a/lib/MemberBuilder.js b/lib/MemberBuilder.js index 60dbf1f..64799c9 100644 --- a/lib/MemberBuilder.js +++ b/lib/MemberBuilder.js @@ -1,6 +1,12 @@ /** * Handles building members (properties, methods) * + * This prototype could have easily been refactored into a number of others + * (e.g. one for each type of member), but that refactoring has been deferred + * until necessary to ensure ease.js maintains a relatively small footprint. + * Ultimately, however, such a decision is a micro-optimization and shouldn't + * harm the design and maintainability of the software. + * * Copyright (C) 2010 Mike Gerwitz * * This file is part of ease.js. @@ -31,6 +37,9 @@ var util = require( __dirname + '/util' ), ; +/** + * Responsible for building class members + */ module.exports = function MemberBuilder() { // permit omitting 'new' keyword