Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357626

Summary: Overwritten prototypes
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ClientAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon, simon_kaegi
Version: 0.2   
Target Milestone: 0.3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Malgorzata Janczarska CLA 2011-09-14 09:13:46 EDT
In some places we are creating a new class propotyle by overriding other class prototype, like this:
MyClass.propotype = MyOtherClass.prototype;
This is bad, because modifying MyClass.prototype we are also modifying MyOtherClass.prototype, we should use this:
MyClass.prototype = new MyOtherClass();
This is in several places especially explorer.
Comment 1 Malgorzata Janczarska CLA 2011-09-16 08:33:00 EDT
I went though our code and corrected places I could find, mostly situated in navigators. Hopefully I corrected it all.
Comment 2 Simon Kaegi CLA 2011-09-16 12:12:20 EDT
*** Bug 357890 has been marked as a duplicate of this bug. ***