Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

MooTools class worked before 23.0.1

  • 3 ответа
  • 1 имеет эту проблему
  • 7 просмотров
  • Последний ответ от JDrysdaleCTR

more options

For a web application that I am working on using MooTools (and a custom class for modal windows), FF21, IE7-10, and Chrome24 all work just fine. Upgrade to FF23.0.1, and there's an error when trying to close a modal window - nothing works and the page has to be refreshed to continue working.

hide: function(){

 var win = this;
 parent.frames[win.name].$('containerID').setStyle('display','none');
 win.popup.addClass('hidden');
 return win;
 }

This closes the modal in FF21, IE7-10, and Chrome. But not in FF23.0.1.

For a web application that I am working on using MooTools (and a custom class for modal windows), FF21, IE7-10, and Chrome24 all work just fine. Upgrade to FF23.0.1, and there's an error when trying to close a modal window - nothing works and the page has to be refreshed to continue working. hide: function(){ var win = this; parent.frames[win.name].$('containerID').setStyle('display','none'); win.popup.addClass('hidden'); return win; } This closes the modal in FF21, IE7-10, and Chrome. But not in FF23.0.1.

Все ответы (3)

more options

Then the developer has to update their addon/plugin for the newer versions of firefox, if its really needed, you can revert to the last working version.

more options

What error messages do you see in the Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K) about this issue?

Firefox may not support frames[win.name], but only frames[#] with an index number and you may need to use getElementById() or getElementByName() instead.

more options

FireBug is reporting: parent.frames[win.name].$ is not a function

It _could_ be that FF 23 only supports index instead of name/id, but that seems an odd thing to stop supporting name/id after so many versions do. Was working flawlessly in v21.

I'll look into it to see if frame support has changed in v23.

Thanks,

JD