Okay, I've found why!!! But this arise another question.
I've tested this: erased one of the files, in the other I've added a
window.onload below the first window.onload and a strange thing
happened: the last window.onload gets executed.
So this takes me to the conclusion: I can't "monkeypatch"
window.onload, can be called just once, not only once in one JS, even in
the whole JS filesystem. Why works this way?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dc68798ede0fa4715d4c3955f2b5b006%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment