1 /* 2 * Naos Framework 3 * 4 * LICENSE 5 * http://www.naos-framework.com/website.naos.framework/en/license 6 * 7 * Copyright (c) 2008 Jupiter GmbH 8 */ 9 10 /* 11 * This file triggers the Document OnLoad Notifier methods. This file is included 12 * with the "defer" attribute, which allows us to estimate the moment where the DOM 13 * tree is loaded for the IE. In case a Mozilla Browser is used, we use the 14 * "DOMContentLoaded" event to achieve the same behaviour. 15 */ 16 17 /*@cc_on 18 @if (@_win32) 19 NaosHandler.documentOnLoadNotifier(); 20 @else @*/ 21 22 if(document.addEventListener) 23 { 24 document.addEventListener("DOMContentLoaded", NaosHandler.documentOnLoadNotifier, false); 25 } 26 else 27 { 28 NaosHandler.documentOnLoadNotifier(); 29 } 30 31 /*@end 32 @*/ 33