transition.js icon indicating copy to clipboard operation
transition.js copied to clipboard

IE 9 (and lower) crashes

Open ricardovanlaarhoven opened this issue 12 years ago • 8 comments

function resetPage($nextPage, $currentPage) { console.log('fn resetpage'); $currentPage.attr('class', $currentPage.data('originalClassList'));

i9 says that the last line had an error. the error that ie9 tells me is in dutch so i try to transulate it right.

dutch: kan de eigenschap attr van een niet-gedefinieerde verwijzing of verwijzing naar een lege waarde niet ophalen

englisch: cant get the propertie attr of a not identified reffer or a reffer to an empty value

ricardovanlaarhoven avatar Nov 13 '13 10:11 ricardovanlaarhoven

this was wrong: there was no parameter wrapper sended and the other 2 parameters were flipped.

// Check if the animation is supported by browser and reset the pages. if(!support) { onEndAnimation($('.pt-wrapper'), $nextPage,$currentPage); }

ricardovanlaarhoven avatar Nov 14 '13 12:11 ricardovanlaarhoven

Hi, Project is supported? IE bug: Unable to get value of the property 'attr': object is null or undefined transition.js, line 455 character 9

cyberfuhrer avatar May 09 '14 23:05 cyberfuhrer

Hello,

I stuck with the same issue as @sly-slaw. There is an error in IE9: "Unable to get value of the property 'attr': object is null or undefined" for this line "$currentPage.attr('class', $currentPage.data('originalClassList'));" Could you please tell me how to fix it?

Thank you in advance!

Best regards, Alex

optimix-designer avatar Oct 16 '14 23:10 optimix-designer

ricardovanlaarhoven has found the solution , look at answer from 14 Nov 2013

Loic57 avatar Dec 04 '14 15:12 Loic57

Thank you @Loic57 . Unfortunately, this fix didn't solve the issue :(

optimix-designer avatar Dec 04 '14 15:12 optimix-designer

Are you sure ? Can you show me your code please ? or maybe find a way to send me your transition.js file

Loic57 avatar Dec 04 '14 15:12 Loic57

I could fix this bug using "$pageWrapper" as the first argument:

if(!support) { onEndAnimation($pageWrapper,$currentPage, $nextPage); }

joelurraco avatar Dec 10 '14 15:12 joelurraco

I have the same issue as optimix-designer, however on further investigation it only happens if I'm using the go-to and specifying a specific number rather than next or previous.

e.g. data-goto="2"

gives me this error in IE9 "Unable to get value of the property 'attr': object is null or undefined" for this line "$currentPage.attr('class', $currentPage.data('originalClassList'));"

I've applied the earlier mentioned fix, which solved the first error but once it hits resetpage I have the issue.

It also seems 1 page out, so if i click the next trigger button I have to click it twice before it will register, then it works.

I've been fiddling around with not much luck, has anyone had this issue and can offer a solution?

Thanks

(i'm using the latest code)

sephorra avatar Aug 10 '15 08:08 sephorra