ugly ugly bug with circular fields

This commit is contained in:
Peter Cottle 2013-10-06 15:12:21 -07:00
parent 1ed8a2524a
commit bbf837a4b2
6 changed files with 36 additions and 18 deletions

View file

@ -116,8 +116,8 @@ var Command = Backbone.Model.extend({
}
},
oneArgImpliedHead: function(args, option) {
this.validateArgBounds(args, 0, 1, option);
oneArgImpliedHead: function(args) {
this.validateArgBounds(args, 0, 1);
// and if it's one, add a HEAD to the back
if (args.length === 0) {
args.push('HEAD');