X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FDocument.js;h=c1122ecf7c3852f940cff560fc5d4f125cdb83cc;hb=refs%2Fheads%2Fwip_leon_T7094_logo_image_upload_in_boilerplate;hp=2bd10f7ef37e90da9e436119fb18e595bffa5e80;hpb=7e1d957f64508be875bb38e4fce1556488aa2197;p=roojs1 diff --git a/Roo/Document.js b/Roo/Document.js index 2bd10f7ef3..c1122ecf7c 100644 --- a/Roo/Document.js +++ b/Roo/Document.js @@ -12,14 +12,9 @@ * 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 : { @@ -27,7 +22,7 @@ }, listeners : { 'ready' : function() { - // fired on Ext.onReady() + // fired on Roo.onReady() } } * @@ -38,10 +33,14 @@ Roo.Document = function(cfg) { '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, {}); \ No newline at end of file