kubetail-org / loadjs

A tiny async loader / dependency manager for modern browsers (899 bytes)
MIT License
2.57k stars 149 forks source link

Cannot read property 'replace' of undefined #70

Closed cekvenich closed 6 years ago

cekvenich commented 6 years ago

Version 3.5.4 :

loadjs.js:106 Uncaught TypeError: Cannot read property 'replace' of undefined at loadFile (loadjs.js:106) at loadFiles (loadjs.js:197) at loadjs (loadjs.js:228)

amorey commented 6 years ago

Can you describe how to reproduce the error?

cekvenich commented 6 years ago

I passed a bad array [ , 'something']. Maybe a try catch.

Also, seems like events are on capture, not on bubble?

Last, please reconsider adding require. Please. tia.

amorey commented 6 years ago

Which events are you referring to?

On Jun 3, 2018, at 9:38 AM, cekvenich notifications@github.com wrote:

I passed a bad array [ , 'something']. Maybe a try catch.

Also, seems like events are on capture, not on bubble?

Last, please reconsider adding require. Please. tia.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

cekvenich commented 6 years ago

'ready' events. I have so settimeout to 1 to do my work on ready.

On 6/3/2018 10:06 AM, Andres Morey wrote:

Which events are you referring to?

On Jun 3, 2018, at 9:38 AM, cekvenich notifications@github.com wrote:

I passed a bad array [ , 'something']. Maybe a try catch.

Also, seems like events are on capture, not on bubble?

Last, please reconsider adding require. Please. tia.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/muicss/loadjs/issues/70#issuecomment-394164711, or mute the thread https://github.com/notifications/unsubscribe-auth/AVN9ps8BHPTBcmNZqXHFrGKtALd0TNE0ks5t4-1rgaJpZM4UW80o.

amorey commented 6 years ago

Can you be more specific? LoadJS doesn't capture or dispatch any DOM events. Are you referring to the DOMContentLoaded event (i.e. $(document).ready())?