Skip to content

IE8以下で、'{window} click'にバインドした時に、イベントハンドラの第2引数がwindowと===にならない #339

Description

@fukudayasuo

コントローラでイベントハンドラをバインドした時、第2引数にはそのイベントハンドラのcurrentTargetのjQueryオブジェクトが渡される。

'{window} click'にバインドしたハンドラの第2引数には、$(window)が渡されるはずであるが、以下のようなコードで比較した時、$elの中身がwindowと===にならない。

h5.core.controller('body', {
  __name:'A',
  '{window} click': function(context, $el) {
    $el[0] === window; // falseになる。
  }
});

IE8でjQuery1.10.0で確認した。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions