Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery("head script:last").attr("src") is undefined #13

Closed
Lopo opened this issue Aug 29, 2011 · 4 comments
Closed

jQuery("head script:last").attr("src") is undefined #13

Lopo opened this issue Aug 29, 2011 · 4 comments

Comments

@Lopo
Copy link
Contributor

Lopo commented Aug 29, 2011

v texyla.js riadok 121
nastava v pripade ze v headeri neni posledny script linkovaci, tj u mna ked je to priamo zapisany kod (WebLoader + head.js linkovanie)
nepomoze ani ked baseDir nastavim v options kedze riadok 121 sa vykonava este pred zavolanim samotnej texyly

riesenie ma aktualne nenapada

@janmarek
Copy link
Owner

možná tam dát nějakou podmínku, že když $('head script:last').size() === 0, tak nastav null

@voda
Copy link

voda commented Aug 29, 2011

nepomohlo by jQuery("head script[src]:last").attr("src")?

@Lopo
Copy link
Contributor Author

Lopo commented Aug 30, 2011

mno obecne myslim ze nejake zistovanie takeho atributu z hlavicky je chyba ... pretoze v hlavicke mozu byt uplne ine skripty, ktore nemosia mat s texylou absolutne nic spolocne - alebo mozu byt tahane z CDN pricom texyla z lokalu

ja som teraz ten riadok 121 zakomentoval a do vstupnych options som dal ako jeden z parametrov ten adresar a ide mi to bez chyby - takze momentalne asi jedine funkcne riesenie je tu automatiku odstavit a brat ten parameter z options, tj mat ho ako povinny

@janmarek
Copy link
Owner

souhlas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants