projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf4ffa3
)
Roo/Document.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 Jun 2010 05:10:01 +0000
(13:10 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 Jun 2010 05:10:01 +0000
(13:10 +0800)
Roo/Document.js
patch
|
blob
|
history
diff --git
a/Roo/Document.js
b/Roo/Document.js
index
dcabeb6
..
9623849
100644
(file)
--- a/
Roo/Document.js
+++ b/
Roo/Document.js
@@
-165,7
+165,7
@@
Roo.extend(Roo.Document, Roo.util.Observable, {
build : function(parent, onComplete)
{
build : function(parent, onComplete)
{
-
+ onComplete = onComplete || Roo.emptyFn;
var _this = this;
var cmp = function(a,b) {
return String(a).toUpperCase() > String(b).toUpperCase() ? 1 : -1;
var _this = this;
var cmp = function(a,b) {
return String(a).toUpperCase() > String(b).toUpperCase() ? 1 : -1;
@@
-200,10
+200,7
@@
Roo.extend(Roo.Document, Roo.util.Observable, {
//console.log(mods);
//return;
if (!mods.length) {
//console.log(mods);
//return;
if (!mods.length) {
- if (onComplete) {
- onComplete.call(this);
- }
- return;
+ return onComplete.call(this);
}
// flash it up as modal - so we store the mask!?
Roo.MessageBox.show({ title: 'loading' });
}
// flash it up as modal - so we store the mask!?
Roo.MessageBox.show({ title: 'loading' });
@@
-221,10
+218,7
@@
Roo.extend(Roo.Document, Roo.util.Observable, {
var progressRun = function() {
n++;
if (n >= mods.length) {
var progressRun = function() {
n++;
if (n >= mods.length) {
- if (onComplete) {
- onComplete.call(this);
- }
- return;
+ return onComplete.call(this);
}
var m = mods[n];
}
var m = mods[n];