Skip to content

Effect: check if option parameter is an object. Fixed #8670 - null reference when using effects #783

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

Closed
wants to merge 1 commit into from

Conversation

maciejmrozinski
Copy link

No description provided.

@mikesherov
Copy link
Member

Thanks for contributing! Can you add a unit test for this as well?

@maciejmrozinski
Copy link
Author

I've never done that before:/ Can You guide me, tell me where to start, how unit test should looks like? What should i check within it? Thanks for any help.

@gnarf gnarf closed this in 8b76684 Oct 21, 2012
@gnarf
Copy link
Member

gnarf commented Oct 21, 2012

Thanks for forcing my hand on this one, I was planning on the == null check anyway.

@gnarf
Copy link
Member

gnarf commented Oct 21, 2012

P.S. my commit also included a unit test so you can check out how you go about writing one of those.

@maciejmrozinski
Copy link
Author

Thanks for this unit test. I will learn to write those for better contributing :) Please correct me if i am wrong. Is options == null the same as options == undefined?

@gnarf
Copy link
Member

gnarf commented Oct 25, 2012

options == null will only be true for null and undefined - It is the only case we use == inside jQuery code for exactly this reason.

gnarf added a commit that referenced this pull request Nov 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants