-
Notifications
You must be signed in to change notification settings - Fork 809
Open
Description
Hi Addy,
I wonder why in this line of code
Line 255 in 21346c1
extend( CaseDecorator, MacbookDecorator ); |
CaseDecorator
with MacbookDecorator
. As functions, they don't have any enumerable properties by their own yet. Shouldn't happen the extension in the prototype like:
extend(CaseDecorator.prototype, MacbookDecorator.prototype);
because trying to do this console.log(decoratedMacbookPro.addEngraving());
results in a TypeError: decoratedMacbookPro.addEngraving is not a function
chunlinyao
Metadata
Metadata
Assignees
Labels
No labels