prevent scrollTo from being converted from false to 0 #33
Reference in New Issue
Block a user
Delete Branch "disableable-scrollTo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the loadUrl function there is an explicit check for false as a means to disable the scrollTo behavior however if the scrollTo option is passed to the constructor as false the gaud statement was converting false to 0.
I'm currently refactoring this lib, can you please provide at least a test for this ? Thanks !
Are you changing the public api (including such as changing what attributes are available) or just refactoring internals? My main reason for asking is that my test for this would require reading .options of the Pjax object? Also is master where this development is taking place?
You can fork current master that is WIP right now. Take a look to how test are written, you should not need an pjax instance because we should explode the rest of index.js into smaller entities.
You can eventually take a look to the git history to see how I'm doing that.
If this looks to complicated for you, keep this PR open & I'll handle that, but I don't know when :)
Test added. I had to pull the options defaults into a separate file so as to not instantiate a new pjax object. (it is basically only an issue instantiation). The only thing failing in int npm test was failing before as well.
Thanks for this.
I'll take a look when I will continue this refactoring (I'm working hard on cssnext right now).
Sounds good tho.
Any word on this?
No time for this for now. Are you interested to get write access ?
If you're comfortable with that I'm up for it.
You should now have full access to the repo. Be careful ;)
What is your npm username if you have any (otherwise I will make the release when needed)?
lgtm, merging so we can move forward
Sorry I didn't get on that faster had another project cannibalize my time for a bit.
Also interestingly write access doesn't seem give you the ability to merge pull requests.
Where did you see that?
(I merged your PR).
After you gave me write access I looked at the pull request and there was no option to merge it in. At least not that I could find. Might have something to do with the fact that I submitted it. Thanks for the merge anyway. I submitted a few bug fixes also as just normal commits. Wanted to let you know but didn't know where to message you at.
I merged your PR before you take a look (when I give you write access).
As a collaborator, you can create branch into this repo directly (no need for a fork) & make a pull request + merge. By doing that, you offer other collab to make a review (even if you merge directly) of what have been merged. Nice way to notify collaborators.
Or you can just ping me (like "poke @MoOx") in commit message (in what is considered as a description (below the first line)).
Just looked at your commit. You are doing a great job. Thanks !