before tests

This commit is contained in:
Peter Cottle 2012-12-17 10:31:28 -08:00
parent f34c606d87
commit 565142048c
4 changed files with 20 additions and 31 deletions

View file

@ -5174,12 +5174,6 @@ var CommandEntryCollection = Backbone.Collection.extend({
localStorage: (Backbone.LocalStorage) ? new Backbone.LocalStorage('CommandEntries') : null
});
if (Backbone.LocalStorage) {
console.log('local storage there');
} else {
console.log('not htere');
}
var CommandBuffer = Backbone.Model.extend({
defaults: {
collection: null
@ -7619,7 +7613,7 @@ var Command = Backbone.Model.extend({
return {
'git commit': /^gc($|\s)/,
'git add': /^ga($|\s)/,
'git checkout': /^gchk($|\s)/,
'git checkout': /^go($|\s)/,
'git rebase': /^gr($|\s)/,
'git branch': /^gb($|\s)/
};
@ -7727,6 +7721,7 @@ var Command = Backbone.Model.extend({
var regex = tuple[0];
var results = regex.exec(str);
if (results) {
// this will throw a result
tuple[1](results);
}
});
@ -7738,7 +7733,8 @@ var Command = Backbone.Model.extend({
if (results) {
str = method + ' ' + str.slice(results[0].length);
}
});
this.set('rawStr', str);
}, this);
// see if begins with git
if (str.slice(0,3) !== 'git') {
@ -11372,12 +11368,6 @@ var CommandEntryCollection = Backbone.Collection.extend({
localStorage: (Backbone.LocalStorage) ? new Backbone.LocalStorage('CommandEntries') : null
});
if (Backbone.LocalStorage) {
console.log('local storage there');
} else {
console.log('not htere');
}
var CommandBuffer = Backbone.Model.extend({
defaults: {
collection: null
@ -11579,7 +11569,7 @@ var Command = Backbone.Model.extend({
return {
'git commit': /^gc($|\s)/,
'git add': /^ga($|\s)/,
'git checkout': /^gchk($|\s)/,
'git checkout': /^go($|\s)/,
'git rebase': /^gr($|\s)/,
'git branch': /^gb($|\s)/
};
@ -11687,6 +11677,7 @@ var Command = Backbone.Model.extend({
var regex = tuple[0];
var results = regex.exec(str);
if (results) {
// this will throw a result
tuple[1](results);
}
});
@ -11698,7 +11689,8 @@ var Command = Backbone.Model.extend({
if (results) {
str = method + ' ' + str.slice(results[0].length);
}
});
this.set('rawStr', str);
}, this);
// see if begins with git
if (str.slice(0,3) !== 'git') {