Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30686
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-06-18 15:12 -0700 |
| References | <nk4g26$13la$1@gioia.aioe.org> <nk4gf1$14eb$1@gioia.aioe.org> |
| Message-ID | <63c59810-9cad-47f5-baec-e90eab21c993@googlegroups.com> (permalink) |
| Subject | Re: Object Oriented Elements, callbacks... |
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
On Saturday, June 18, 2016 at 5:03:20 PM UTC-5, Chris M. Thomasson wrote:
> On 6/18/2016 2:56 PM, Chris M. Thomasson wrote:
> > Just wondering what you all think of the way I am hooking up DOM
> > elements, buttons for now, to objects via callbacks. Here is an example
> > page:
> [...]
> > obj.m_e.addEventListener("click", ftor_onclick.bind(obj));
> [...]
> Yikes! this works on many devices, except by Sony Bravia! It says
> (ftor_onclick.bind) does not exist. Damn! What am I doing wrong here?
The device may not support ES5.
a polyfill:
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Object Oriented Elements, callbacks... "Chris M. Thomasson" <nospam@nospam.invalid> - 2016-06-18 14:56 -0700
Re: Object Oriented Elements, callbacks... "Chris M. Thomasson" <nospam@nospam.invalid> - 2016-06-18 15:03 -0700
Re: Object Oriented Elements, callbacks... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-18 15:12 -0700
Re: Object Oriented Elements, callbacks... "Chris M. Thomasson" <nospam@nospam.invalid> - 2016-06-18 15:12 -0700
Re: Object Oriented Elements, callbacks... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-18 15:19 -0700
Re: Object Oriented Elements, callbacks... "Chris M. Thomasson" <nospam@nospam.invalid> - 2016-06-19 01:06 -0700
Re: Object Oriented Elements, callbacks... "Chris M. Thomasson" <nospam@nospam.invalid> - 2016-06-19 12:06 -0700
Re: Object Oriented Elements, callbacks... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-19 12:27 -0700
csiph-web