プロジェクト

全般

プロフィール

Defect #938

完了

Do not use window.onload

Scott Duensing さんが約12年前に追加. 約12年前に更新.

ステータス:
却下(Invalid)
優先度:
通常(Normal)
担当者:
対象バージョン:
-
開始日:
2012/02/01
期日:
進捗率:

100%

予定工数:

説明

Using window.onload breaks other plugins. Please use Event.observe(window, 'load', function(){ codeHere; }); instead. Thanks!

Haru Iida さんが約12年前に更新

Hi.

What plugin are you talking about?
We have many plugins in this site.

Scott Duensing さんが約12年前に更新

Basically anything else that uses window.onload is going to have issues. redmine_git_hosting was the one I had problems with. It also was using window.onload directly (but has since been fixed). Only one method can be assigned to window.onload. Without looking for an existing method to be there and then chaining to it after your own is called, bad things can happen. That is what Event.observe is designed to prevent. See: http://www.prototypejs.org/api/event/observe

Thanks for your plugin!

Haru Iida さんが約12年前に更新

I mean, what plugin did you find this problem?
Code review? Wiki Extensions? Worktime? or else?
We are developing many plugins by many developers.

I want to know who should be assigned this issue.

Scott Duensing さんが約12年前に更新

Oh! I misunderstood. It was in Code Review.

Haru Iida さんが約12年前に更新

  • プロジェクトr-labs から Code Review に変更
  • 担当者Haru Iida にセット

Thanks.

I will check my code.

Haru Iida さんが約12年前に更新

  • 対象バージョン0.4.7 にセット

Haru Iida さんが約12年前に更新

I searched "window.onload" in my codes but I couldn't find it.
Which file did you find it?

Scott Duensing さんが約12年前に更新

Arrrgh! Sorry! I went back to look a second time and it seems I was wrong. It's not your plugin causing the problem - it appears to be part of Redmine itself. I'll follow up with them.

Sorry for the confusion and wasting your time. Thanks again for the plugin!

Haru Iida さんが約12年前に更新

  • ステータス新規(New) から 却下(Invalid) に変更
  • 対象バージョン を削除 (0.4.7)
  • 進捗率0 から 100 に変更

No problem. Never mind.

他の形式にエクスポート: Atom PDF