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

Minor fix to registry #86

Merged
merged 1 commit into from
Feb 28, 2015

Conversation

BorisKozo
Copy link
Contributor

Fixing issue #77

Added some unit tests for the type registry
Fixed 2 typos in existing unit tests that were found due to this change

@BorisKozo
Copy link
Contributor Author

Moved from #83

@@ -33,7 +37,7 @@ _.extend(TypeRegistry.prototype, {

// Remove an item from a given type registration
unregister: function(type) {
if (this.registeredTypes[type]) {
if (_.has(this.registeredTypes,type)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pop in a space for formatting:

if (_.has(this.registeredTypes, type)) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, forgot to reformat document

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no probs, once #88 lands, this kind of stuff will be picked up on grunt test

@rhubarbselleven
Copy link
Contributor

Great stuff @BorisKozo. Could you please squash this down to 1 commit?

Changed hasOwnProperty to _.has

Fixed issue where you could not register or unregister falsy items
@BorisKozo BorisKozo force-pushed the minor-fix-to-registry branch from dbb9baf to b1ae326 Compare February 27, 2015 07:20
@rhubarbselleven
Copy link
Contributor

Special Sauce. Thanks @BorisKozo

rhubarbselleven added a commit that referenced this pull request Feb 28, 2015
@rhubarbselleven rhubarbselleven merged commit 0994494 into marionettejs:minor Feb 28, 2015
jamiebuilds added a commit that referenced this pull request Mar 2, 2015
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