Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

SelectCell broken on IE8 #421

Closed
wyuenho opened this issue Jan 9, 2014 · 6 comments
Closed

SelectCell broken on IE8 #421

wyuenho opened this issue Jan 9, 2014 · 6 comments
Labels
Milestone

Comments

@wyuenho
Copy link
Contributor

wyuenho commented Jan 9, 2014

Array has no indexOf on IE8

https://github.com/wyuenho/backgrid/blob/master/src/cell.js#L804

This._renderOptions has wrong context, (but somehow works on every other browser WTFFFF?)

https://github.com/wyuenho/backgrid/blob/master/src/cell.js#L848

@wyuenho wyuenho closed this as completed in ad1933b Jan 9, 2014
jgornick added a commit to jgornick/backgrid that referenced this issue Jan 17, 2014
Replace Array#indexOf with _.indexOf.
@jgornick
Copy link

@wyuenho I found another place that needed to replace Array#indexOf usage. How would you like to merge in the commit?

@wyuenho
Copy link
Contributor Author

wyuenho commented Jan 17, 2014

Oh haha damn it. Just file PR here.

@wyuenho wyuenho reopened this Jan 17, 2014
@jgornick
Copy link

@wyuenho There are some other areas in the code (row.js, body.js) that reference potential Array#indexOf. For example, https://github.com/wyuenho/backgrid/blob/master/src/body.js#L330 uses indexOf, however, there's a possibility the columns could be an Array.

@wyuenho
Copy link
Contributor Author

wyuenho commented Jan 17, 2014

Columns will always be a collection as soon as it goes thru the constructor. I've just tested it on IE 8. Everything works but the tests fail because I was using some ES5 stuff in the tests. IE8's innerHTML is also giving me a headache in the tests.

Be warned: 0.4 will drop IE 8 support. Get your polyfills out before it's too late.

Sent from my iPhone

On 17 Jan, 2014, at 11:19 pm, Joe Gornick [email protected] wrote:

@wyuenho There are some other areas in the code (row.js, body.js) that reference potential Array#indexOf. For example, https://github.com/wyuenho/backgrid/blob/master/src/body.js#L330 uses indexOf, however, there's a possibility the columns could be an Array.


Reply to this email directly or view it on GitHub.

@jgornick
Copy link

Cool. I'm 👍 for removing IE8 support.

@wyuenho
Copy link
Contributor Author

wyuenho commented Jan 17, 2014

0.3.4 has just been released with this bug fix BTW

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants