1
0
Fork 0

Meta now uses deep cloning

closure/master
Mike Gerwitz 2011-01-25 00:19:48 -05:00
parent 881edc0cc6
commit fa8cddea07
1 changed files with 1 additions and 4 deletions

View File

@ -619,10 +619,7 @@ function createMeta( func, parent_id )
// copy the parent prototype's metadata if it exists (inherit metadata) // copy the parent prototype's metadata if it exists (inherit metadata)
if ( parent_meta ) if ( parent_meta )
{ {
// todo: deep (1) util.clone() when available class_meta[ id ] = util.clone( parent_meta, true );
class_meta[ id ] = {
implemented: util.clone( parent_meta.implemented ),
};
} }
else else
{ {