fix bug in new history module

This commit is contained in:
Sebastian Sdorra
2011-11-16 18:54:31 +01:00
parent 6d3da7ce98
commit 4152bae0c8
2 changed files with 5 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ Sonia.History = {
token += '|';
}
}
} else {
token = elements;
}
return token;
},

View File

@@ -113,12 +113,12 @@ Sonia.util.apply = function(obj, p){
} else {
if (p){
if ( Ext.isArray(p) ){
obj.fn.call(obj.scope, p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]);
result = obj.fn.call(obj.scope, p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]);
} else {
obj.fn.call(obj.scope, p);
result = obj.fn.call(obj.scope, p);
}
} else {
obj.fn.call(obj.scope);
result = obj.fn.call(obj.scope);
}
}
return result;