🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.www
Article #408226

Re: Pytanie o JS: addEventListener()

#408226
From: NotBear
Date: Fri, 13 Feb 2015 13:23
17 lines
1341 bytes
W dniu 2015-02-12 o 13:14, Marek pisze:
> Witam,
>
> Jaka jest praktyczna różnica w stosowaniu:
>
> addEventListener(event, handler, true);

Praktyczna jest taka, ze IE<9 nie umie tak.

Dlatego powszechna praktyka jest rejestrowanie zdarzen z wykorzystaniem 
fazy bubblingu addEventListener(event, handler, false). Aktualnie trzeci 
parametr w addEventListener jest opcjonalny i domyslnie false, a 
skladnie z 3 parametrami stosuje sie dla zgodnosci wstecz.


-- 
NotBear
Technical Details
Message-ID: <mbktt4$pt$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <mbi5f3$8af$1@news.icm.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: NotBear <paulcom.HATESPAM@interia.pl>
Newsgroups: pl.comp.www
Subject: Re: Pytanie o JS: addEventListener()
Date: Fri, 13 Feb 2015 14:23:45 +0100
Organization: ATMAN - ATM S.A.
Lines: 17
Message-ID: <mbktt4$pt$1@node2.news.atman.pl>
References: <mbi5f3$8af$1@news.icm.edu.pl>
NNTP-Posting-Host: 217.17.39.162
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1423833828 829 217.17.39.162 (13 Feb 2015 13:23:48 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 13 Feb 2015 13:23:48 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
In-Reply-To: <mbi5f3$8af$1@news.icm.edu.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit