1
0
Fork 0

Now passing base into member builder for getters/setters

closure/master
Mike Gerwitz 2011-06-12 00:36:52 -04:00
parent 75059ad030
commit 6d31bf1084
2 changed files with 8 additions and 4 deletions

View File

@ -541,7 +541,7 @@ function buildMembers(
var dest = ( keywordStatic( keywords ) ) ? smethods : members;
member_builder.buildGetter(
dest, null, name, value, keywords
dest, null, name, value, keywords, base
);
},
@ -550,7 +550,7 @@ function buildMembers(
var dest = ( keywordStatic( keywords ) ) ? smethods : members;
member_builder.buildSetter(
dest, null, name, value, keywords
dest, null, name, value, keywords, base
);
},

View File

@ -282,9 +282,11 @@ exports.buildProp = function( members, meta, name, value, keywords, base )
*
* @param {Object.<string,boolean>} keywords parsed keywords
*
* @param {Object=} base optional base object to scan
*
* @return {undefined}
*/
exports.buildGetter = function( members, meta, name, value, keywords )
exports.buildGetter = function( members, meta, name, value, keywords, base )
{
Object.defineProperty(
getMemberVisibility( members, keywords ),
@ -312,9 +314,11 @@ exports.buildGetter = function( members, meta, name, value, keywords )
*
* @param {Object.<string,boolean>} keywords parsed keywords
*
* @param {Object=} base optional base object to scan
*
* @return {undefined}
*/
exports.buildSetter = function( members, meta, name, value, keywords )
exports.buildSetter = function( members, meta, name, value, keywords, base )
{
Object.defineProperty(
getMemberVisibility( members, keywords ),