From ab49fa1decdbcea21e992a302140fd3868d49da3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Jul 2017 14:49:27 +0800 Subject: [PATCH] roojs-core.js roojs-core-debug.js --- roojs-core-debug.js | 45 +++++++++++++++++++++++++++++++++++++++++++++ roojs-core.js | 2 ++ 2 files changed, 47 insertions(+) diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 56ca26c7b4..b85fec1190 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -6055,6 +6055,51 @@ Roo.util.Observable.releaseCapture = function(o){ } }; })();/* + * RooJS Library + * Copyright(c) 2007-2017, Roo J Solutions Ltd + * + * Licence LGPL + * + */ + +/** + * @class Roo.Document + * @extends Roo.util.Observable + * This is a convience class to wrap up the main document loading code.. , rather than adding Roo.onReady(......) + * + * @param {Object} config the methods and properties of the 'base' class for the application. + * + * Generic Page handler - implement this to start your app.. + * + * eg. + * MyProject = new Roo.Document({ + events : { + 'load' : true // your events.. + }, + listeners : { + 'ready' : function() { + // fired on Roo.onReady() + } + } + * + */ +Roo.Document = function(cfg) { + + this.addEvents({ + 'ready' : true + }); + Roo.util.Observable.call(this,cfg); + + var _this = this; + + Roo.onReady(function() { + _this.fireEvent('ready'); + },null,false); + + +} + +Roo.extend(Roo.Document, Roo.util.Observable, {});/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. diff --git a/roojs-core.js b/roojs-core.js index 7cc75143ac..b8bb1aa7f2 100644 --- a/roojs-core.js +++ b/roojs-core.js @@ -271,6 +271,8 @@ setTimeout(function(){h.apply(D,E);},o.delay||10);};};Roo.util.Event=function(D, var ls=this.listeners;for(var i=0,E=ls.length;i0){this.firing=true;var F=Array.prototype.slice.call(arguments,0); for(var i=0;i"); -- 2.39.2