Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFixes #9 #10
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
wraithgar
Sep 16, 2014
Member
Probably should have an if (cb) conditional like the other calls to cb.
|
Probably should have an if (cb) conditional like the other calls to cb. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dminkovsky
Sep 16, 2014
Contributor
That code path comes via
, so thecb is passed in and mandatory (async)
|
That code path comes via , so thecb is passed in and mandatory (async)
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
If |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dminkovsky
Sep 16, 2014
Contributor
Yeah, you're right. If customHide has length === 3 even though waitForRemove is false in the config, hide() is called without the cb and then it'll fail. I'll add the if (), thanks.
|
Yeah, you're right. If |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
wraithgar
Sep 16, 2014
Member
code looks good, the tests read more like you're enforcing things under the hood rather than expected overarching behavior (i.e. how many parameters hide gets?)
|
code looks good, the tests read more like you're enforcing things under the hood rather than expected overarching behavior (i.e. how many parameters hide gets?) |
dminkovsky
added some commits
Sep 17, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dminkovsky
Sep 17, 2014
Contributor
@wraithgar Thanks for your feedback. What do you think now? The changes I made test the public API, which to me includes the params that your passed-in functions get. So I am testing that options.hide gets first the previous view, then the current view. And the expected behavior.
|
@wraithgar Thanks for your feedback. What do you think now? The changes I made test the public API, which to me includes the params that your passed-in functions get. So I am testing that |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Added this to have a bit less repetition in the setups. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dminkovsky
Sep 17, 2014
Owner
Added this test because it didn't fail, even before the proposed code change in the next commit.
|
Added this test because it didn't fail, even before the proposed code change in the next commit. |
dminkovsky
added some commits
Sep 15, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
lgtm |
bear
added
request
discussion
labels
Oct 30, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
latentflip
Nov 5, 2014
Contributor
Okay, given that there's another pull request for this already with the same implementation and no tests, and we're seeing reported issues for this in gitter, I think we should merge asap. I have the pull request updated to the latest master with fixed merge commits and passing tests, shall I do it?
|
Okay, given that there's another pull request for this already with the same implementation and no tests, and we're seeing reported issues for this in gitter, I think we should merge asap. I have the pull request updated to the latest master with fixed merge commits and passing tests, shall I do it? |
latentflip
merged commit 763f584
into
AmpersandJS:master
Nov 5, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Merged, thanks @dminkovsky and sorry for the delay! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Released as 1.1.2 |
dminkovsky commentedSep 15, 2014
Added some tests. Perhaps they are too much?