try and get ctrl-enter to add a clear all
[roojs1] / Roo / Document.js
1 /*
2  * RooJS Library 
3  * Copyright(c) 2007-2017, Roo J Solutions Ltd
4  *
5  * Licence LGPL 
6  *
7  */
8  
9 /**
10  * @class Roo.Document
11  * @extends Roo.util.Observable
12  * This is a convience class to wrap up the main document loading code.. , rather than adding Roo.onReady(......)
13  * 
14  * @param {Object} config the methods and properties of the 'base' class for the application.
15  * 
16  *  Generic Page handler - implement this to start your app..
17  * 
18  * eg.
19  *  MyProject = new Roo.Document({
20         events : {
21             'load' : true // your events..
22         },
23         listeners : {
24             'ready' : function() {
25                 // fired on Roo.onReady()
26             }
27         }
28  * 
29  */
30 Roo.Document = function(cfg) {
31      
32     this.addEvents({ 
33         'ready' : true
34     });
35     Roo.util.Observable.call(this,cfg);
36     
37     var _this = this;
38     
39     Roo.onReady(function() {
40         _this.fireEvent('ready');
41     },null,false);
42     
43     
44 }
45
46 Roo.extend(Roo.Document, Roo.util.Observable, {});