Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow CareFactory fallback to default vehicleType #138

Merged
merged 1 commit into from
Mar 16, 2014

Conversation

Sequoia
Copy link
Contributor

@Sequoia Sequoia commented Mar 16, 2014

As written, the code would set a defualt type on the VehicleFactory prototype but would not ever use it because it is overridden in the constructor. This also made switching the default value to Truck in truck factory pointless, as the constructer overrode this as well

As written, the code would set a defualt type on the VehicleFactory prototype but *would not ever use it* because it was overridden in the constructor. This also made switching the default value to Truck in truck factory pointless, as the constructer overrode this as well
@addyosmani
Copy link
Owner

Thanks for catching this. Landing the fix!

addyosmani added a commit that referenced this pull request Mar 16, 2014
Allow CareFactory fallback to default vehicleType
@addyosmani addyosmani merged commit ce11b34 into addyosmani:1.5.2 Mar 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants