mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
use arguments in createToken method instead of a array parameter
This commit is contained in:
@@ -51,18 +51,14 @@ Sonia.History = {
|
||||
}
|
||||
},
|
||||
|
||||
createToken: function(elements){
|
||||
createToken: function(){
|
||||
var token = '';
|
||||
if (Ext.isArray(elements)){
|
||||
for (var i=0; i<elements.length; i++){
|
||||
token += elements[i];
|
||||
if ( (i+1)<elements.length ){
|
||||
token += '|';
|
||||
}
|
||||
for (var i=0; i<arguments.length; i++){
|
||||
token += arguments[i];
|
||||
if ( (i+1)<arguments.length ){
|
||||
token += '|';
|
||||
}
|
||||
} else {
|
||||
token = elements;
|
||||
}
|
||||
}
|
||||
return token;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user