mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 23:08:00 +01:00
remove debug toString() methods now we have vimperator.logObject
This commit is contained in:
@@ -120,21 +120,7 @@ Command.prototype.hasName = function(name)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Command.prototype.toString = function()
|
||||
{
|
||||
return "Command {" +
|
||||
"\n\tname: " + this.name +
|
||||
"\n\tnames: " + this.names +
|
||||
"\n\tshort_names: " + this.short_names +
|
||||
"\n\tlong_names: " + this.long_names +
|
||||
"\n\tusage: " + this.usage +
|
||||
"\n\tshort_help: " + this.short_help +
|
||||
"\n\thelp: " + this.help +
|
||||
"\n\taction: " + this.action +
|
||||
"\n\tcompleter: " + this.completer +
|
||||
"\n}"
|
||||
} //}}}
|
||||
//}}}
|
||||
|
||||
function Commands() //{{{
|
||||
{
|
||||
|
||||
@@ -89,18 +89,7 @@ Map.prototype.execute = function(motion, count, argument)
|
||||
args.push(argument);
|
||||
this.action.apply(this, args);
|
||||
}
|
||||
|
||||
Map.prototype.toString = function()
|
||||
{
|
||||
return "Map {" +
|
||||
"\n\tmode: " + this.mode +
|
||||
"\n\tnames: " + this.names +
|
||||
"\n\taction: " + this.action +
|
||||
"\n\tusage: " + this.usage +
|
||||
"\n\tshort_help: " + this.short_help +
|
||||
"\n\thelp: " + this.help +
|
||||
"\n}"
|
||||
} //}}}
|
||||
//}}}
|
||||
|
||||
function Mappings() //{{{
|
||||
{
|
||||
|
||||
@@ -90,23 +90,6 @@ function Option(names, type, extra_info) //{{{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
this.toString = function()
|
||||
{
|
||||
return "Option {" +
|
||||
"\n\tname: " + this.name +
|
||||
"\n\tnames: " + this.names +
|
||||
"\n\tusage: " + this.usage +
|
||||
"\n\tshort_help: " + this.short_help +
|
||||
"\n\thelp: " + this.help +
|
||||
"\n\ttype: " + this.type +
|
||||
"\n\tvalue: " + this.value +
|
||||
"\n\tgetter: " + this.getter +
|
||||
"\n\tsetter: " + this.setter +
|
||||
"\n\tcompleter: " + this.completer +
|
||||
"\n\tvalidator: " + this.validator +
|
||||
"\n}"
|
||||
}
|
||||
} //}}}
|
||||
|
||||
function Options() //{{{
|
||||
@@ -263,14 +246,6 @@ function Options() //{{{
|
||||
return null;
|
||||
}
|
||||
|
||||
this.toString = function()
|
||||
{
|
||||
str = "";
|
||||
for (var i = 0; i < options.length; i++)
|
||||
str += "\n\t" + options[i].name + "=" + options[i].value;
|
||||
return "Options {" + str + "\n}"
|
||||
}
|
||||
|
||||
// TODO: separate Preferences from Options? Would these utility functions
|
||||
// be better placed in the 'core' vimperator namespace somewhere?
|
||||
Options.setPref = function(name, value)
|
||||
|
||||
Reference in New Issue
Block a user