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

throwing exception when registry is initialised with invalid conf #25 #28

Merged

Conversation

federicomaffei
Copy link
Collaborator

issue #25

@@ -13,7 +13,7 @@
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"noempty" : true, // true: Prohibit use of empty blocks
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment)
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
Copy link
Member

Choose a reason for hiding this comment

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

uhm, what is this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

https://jslinterrors.com/do-not-use-new-for-side-effects
lint was not allowing me to write new oc.Registry(args); without assigning to a variable.

Copy link
Member

Choose a reason for hiding this comment

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

can't you assign a variable there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@matteofigus
Copy link
Member

Can you remove

if(registry.err){
  return console.log(registry.err);
}

from the README too? Thanks!

@federicomaffei
Copy link
Collaborator Author

README done, looking if I can find a way not to change .jshintrc

matteofigus added a commit that referenced this pull request Feb 12, 2015
throwing exception when registry is initialised with invalid conf #25
@matteofigus matteofigus merged commit 087fba0 into opencomponents:master Feb 12, 2015
@matteofigus
Copy link
Member

yeah, looks good, thanks

@federicomaffei federicomaffei deleted the handle-registry-validation branch February 18, 2015 11:00
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