return s.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1");
},
- // internal
- callback : function(cb, scope, args, delay){
- if(typeof cb == "function"){
- if(delay){
- cb.defer(delay, scope, args || []);
- }else{
- cb.apply(scope, args || []);
- }
+ // internal (non-delayed, will get a return value..)
+ callback : function(cb, scope, args, delay)
+ {
+ if(typeof cb != "function"){
+ return false;
+ }
+ if(delay){
+ cb.defer(delay, scope, args || []);
+ return false
}
+ return cb.apply(scope, args || []);
+
},
/**
init : function(){
Roo.state.Manager.setProvider(new Roo.state.CookieProvider());
...
- // supposed you have a {@link Roo.BorderLayout}
- var layout = new Roo.BorderLayout(...);
+ // supposed you have a {@link Roo.layout.Border}
+ var layout = new Roo.layout.Border(...);
layout.restoreState();
// or a {Roo.BasicDialog}
var dialog = new Roo.BasicDialog(...);
*
* Each sub module is expected to have a parent pointing to the class name of it's parent module.
*
- * When the top level is false, a 'Roo.BorderLayout' is created and the element is flagged as 'topModule'
+ * When the top level is false, a 'Roo.layout.Border' is created and the element is flagged as 'topModule'
* - if mulitple topModules exist, the last one is defined as the top module.
*
* Embeded Roo
el = el ? Roo.get(el) : false;
- if (typeof(Roo.BorderLayout) == 'undefined' ) {
+ if (typeof(Roo.layout.Border) == 'undefined' ) {
this.parent = {
el : new Roo.bootstrap.layout.Border({
// it's a top level one..
this.parent = {
- el : new Roo.BorderLayout(el || document.body, {
+ el : new Roo.layout.Border(el || document.body, {
center: {
titlebar: false,
autoScroll:false,