Hi folks,
I have a weird one. Basically I'm initializing a class inside
DomReady:
window.addEvent('domready', function() {
var EngineManager = new Engine();
});
Right? Cool.
Afterwards I'd like to refer to a method by calling
EngineManager.slides() but after the whole page gets loaded so I do
this:
window.addEvent('load', function() {
EngineManager.slides();
});
Right? Nope... That throws an error saying that "EngineManager is not
defined" which is odd since it's right there... defined ages ago.
Am I missing something or onDomReady and onLoad are two parallel
realities for themselves?
Best,
Oskar