Skip to content

IE8 support #314

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

Merged
merged 6 commits into from
May 24, 2016
Merged

IE8 support #314

merged 6 commits into from
May 24, 2016

Conversation

tomchiverton
Copy link
Contributor

IE8 requires the ability to use the alternative directive syntax : <div rzslider ... >

Fixes #313

IE8 requires the ability to use the alternative directive syntax : <div rzslider ... ></div>

Fixes angular-slider#313
@codecov-io
Copy link

Current coverage is 100.00%

Merging #314 into master will not affect coverage as of c6be5d0

@@            master    #314   diff @@
======================================
  Files            1       1       
  Stmts          701     701       
  Branches         0       0       
  Methods          0       0       
======================================
  Hit            701     701       
  Partial          0       0       
  Missed           0       0       

Review entire Coverage Diff as of c6be5d0

Powered by Codecov. Updated on successful CI builds.

@tomchiverton
Copy link
Contributor Author

The only problem this leaves is that the CSS rules all need to be changed : s/^rzslider/.rzslider/g and I'm not sure how you'd do that. Would we change all the rules to have selectors that covered both cases ?

@ValentinH
Copy link
Member

What about using replace: true and wrapping the template inside a div with the .rz-slider class? Then we can simply replace the rzslider rule by .rzslider in the LESS file?

@tomchiverton
Copy link
Contributor Author

Did you mean "the template inside a div with the .rzslider class" ?
I think that upsets initElemHandles() because when I did that, FireFox complains that this.selbar is null.

@ValentinH
Copy link
Member

Yes the initElemHandles probably needs some refactoring too. However, if simply using the attribute syntax is OK for IE8 then this is probably simpler. What do you think?

@tomchiverton
Copy link
Contributor Author

New template, SASS source, and change to initElemhandles() now pushed.

@ValentinH
Copy link
Member

Why did you use class=\"rzslider\" for the template? It shoud be directly class="rzslider" I think.

@tomchiverton
Copy link
Contributor Author

@ValentinH not sure what you mean. The slashes have to be there to escape the speech marks.

@ValentinH
Copy link
Member

they have to be here when used directly in the JS file but here it's an HTML one. ;)

@tomchiverton
Copy link
Contributor Author

@ValentinH oh, right. I'm not sure how that file ends up in the output .js file. I will change on the branch.

@ValentinH
Copy link
Member

OK, I need to test it to ensure that there is no breaking change due to this change. Some unit tests are failing and they are probably about the vertical option.

@ValentinH
Copy link
Member

Sorry for the delay of my response. I have just tried you changed and indeed, the vertical sliders are broken.
You just need to add replace: true to the directive config and remove your changes in the initElemHandles() method. ;)

@ValentinH
Copy link
Member

@tomchiverton any update about this PR?

@ValentinH ValentinH closed this May 12, 2016
@ValentinH ValentinH reopened this May 12, 2016
@tomchiverton
Copy link
Contributor Author

I've not had a chance to add vertical sliders to our IE8-requiring application to confirm the suggestion above.

@ValentinH
Copy link
Member

I tried it and it should work. Could you update your PR so I can merge it?

@tomchiverton
Copy link
Contributor Author

Sure. I didn't realise Github wouldn't let you make these changes pre-merge.

@ValentinH
Copy link
Member

Thanks! Just before I merge, can you rebase/squash all the commits into one please so it's cleaner in the commits list?

@tomchiverton
Copy link
Contributor Author

How do I do that ? Pretend I'm a Subversion user who only uses Git because lots of projects I depend on do.

@ValentinH
Copy link
Member

@ValentinH
Copy link
Member

Also it will be released under 3.0 version since existing implementations can be broken if style are defined using the rzslider selector.

@tomchiverton
Copy link
Contributor Author

tomchiverton commented May 24, 2016

Apparently you can do this for this and all future requests : https://github.com/blog/2141-squash-your-commits

@ValentinH ValentinH merged commit 1ee4457 into angular-slider:master May 24, 2016
@ValentinH
Copy link
Member

Indeed, I saw it when they added it but forgot it! :D Thanks 👍

@ValentinH
Copy link
Member

ValentinH commented May 24, 2016

I'll release it a little bit later because I would like to implement what I explained in #328 so I only do only major release.

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.

3 participants