Re:How to build a plugin system on the web and also sleep we...
by jasonmcaffee on Thursday August 22, 2019 @05:38PM
(#20772618)
Has anyone tried running the solution? It doesn't seem to work...
The below code results in the console logging the document object, which has the document object, and the code hits a ReferenceError when trying to log the 'a' variable.
Calls to p.whateverPropYouMakeUp result in the log 'get for target: ...'
https://jsfiddle.net/wf02n4gs/
[ Parent
| on HN ]
Re:How to build a plugin system on the web and also sleep we...
by pfraze on Thursday August 22, 2019 @06:05PM
(#20772826)
I was able to make it work by adding a has() trap.
Re:How to build a plugin system on the web and also sleep we...
by quickthrower2 on Friday August 23, 2019 @12:37AM
(#20774547)
Thanks - I extended that to show two "widgets" being fed 2 different JQueries: https://jsfiddle.net/habla/a56807ng/
Re:How to build a plugin system on the web and also sleep we...
by jasonmcaffee on Friday August 23, 2019 @10:49AM
(#20778195)
Awesome! Thanks!