-
Notifications
You must be signed in to change notification settings - Fork 776
Closed
Labels
Status: DeclinedStatus: ReadyA "Meta" type issue that has reached consensus.A "Meta" type issue that has reached consensus.Type: EnhancementNew idea or feature request.New idea or feature request.Type: MetaSeek input from maintainers and contributors.Seek input from maintainers and contributors.
Description
Ref #859 (comment)
Instead of using QUnit's extend method to extend a module's env. inheritance, we should improve it with a Object.create's like inheritance.
Suggested by @gibson042:
var createObject = (function( Base ) {
return function( prototype ) {
Base.prototype = prototype;
return new Base();
};
})( Function() );
…
env = createObject( parentModule.testEnvironment );We could also use Object.create adding a polyfill that would be used only on IE6~IE8 for the supported browsers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: DeclinedStatus: ReadyA "Meta" type issue that has reached consensus.A "Meta" type issue that has reached consensus.Type: EnhancementNew idea or feature request.New idea or feature request.Type: MetaSeek input from maintainers and contributors.Seek input from maintainers and contributors.