Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: addEventListener question Date: Sat, 11 Aug 2018 16:27:33 +0200 Organization: solani.org Lines: 9 Message-ID: References: <5b6dbba7$0$2957$e4fe514c@news.xs4all.nl> <5b6ed658$0$2956$e4fe514c@news.xs4all.nl> <87zhxtxb4u.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1533997650 29364 127.0.0.43 (11 Aug 2018 14:27:30 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 11 Aug 2018 14:27:30 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 In-Reply-To: <87zhxtxb4u.fsf@bsb.me.uk> X-User-ID: eJwFwQkBACAIA8BKIGxoHHnsH8E7GJUVTtDx8AbSKn6Mq0+x9ro6vafzmAlu+uQLg2bMbOoHGmgRMQ== Content-Language: de-DE Cancel-Lock: sha1:z2i+yjDc5WVm04BEZxgn73IhnnI= Xref: csiph.com comp.lang.javascript:35456 On 11.08.2018 at 15:53, Ben Bacarisse wrote: > Also, with the code as it is, you don't need fresh a listener function > every time. You just need two of them, each used three times. […] Actually, a *single* event listener for #csschart is sufficient. -- Christoph M. Becker