ALL converted

This commit is contained in:
Peter Cottle 2012-12-12 10:17:37 -08:00
parent 66b980fb03
commit e876ad6109
7 changed files with 586 additions and 444 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,10 @@
var Errors = require('./errors');
var CommandProcessError = Errors.CommandProcessError;
var GitError = Errors.GitError;
var Warning = Errors.Warning;
var CommandResult = Errors.CommandResult;
var Command = Backbone.Model.extend({ var Command = Backbone.Model.extend({
defaults: { defaults: {
status: 'inqueue', status: 'inqueue',

View file

@ -3,6 +3,9 @@ var Main = require('./main');
var Command = require('./commandModel').Command; var Command = require('./commandModel').Command;
var CommandEntry = require('./commandModel').CommandEntry; var CommandEntry = require('./commandModel').CommandEntry;
var Errors = require('./errors');
var Warning = Errors.Warning;
var CommandPromptView = Backbone.View.extend({ var CommandPromptView = Backbone.View.extend({
initialize: function(options) { initialize: function(options) {
this.collection = options.collection; this.collection = options.collection;

View file

@ -19,26 +19,27 @@ var MyError = Backbone.Model.extend({
} }
}); });
var CommandProcessError = MyError.extend({ var CommandProcessError = exports.CommandProcessError = MyError.extend({
defaults: { defaults: {
type: 'Command Process Error' type: 'Command Process Error'
} }
}); });
var CommandResult = MyError.extend({ var CommandResult = exports.CommandResult = MyError.extend({
defaults: { defaults: {
type: 'Command Result' type: 'Command Result'
} }
}); });
var Warning = MyError.extend({ var Warning = exports.Warning = MyError.extend({
defaults: { defaults: {
type: 'Warning' type: 'Warning'
} }
}); });
var GitError = MyError.extend({ var GitError = exports.GitError = MyError.extend({
defaults: { defaults: {
type: 'Git Error' type: 'Git Error'
} }
}); });

View file

@ -4,6 +4,10 @@ var Main = require('./main');
var AnimationQueue = require('./async').AnimationQueue; var AnimationQueue = require('./async').AnimationQueue;
var InteractiveRebaseView = require('./miscViews').InteractiveRebaseView; var InteractiveRebaseView = require('./miscViews').InteractiveRebaseView;
var Errors = require('./errors');
var GitError = Errors.GitError;
var CommandResult = Errors.CommandResult;
// backbone or something uses _.uniqueId, so we make our own here // backbone or something uses _.uniqueId, so we make our own here
var uniqueId = (function() { var uniqueId = (function() {
var n = 0; var n = 0;

View file

@ -130,7 +130,7 @@
<!-- My files! --> <!-- My files! -->
<!-- <script src="async.js"></script> --> <!-- <script src="async.js"></script> -->
<!-- <script src="constants.js"></script> --> <!-- <script src="constants.js"></script> -->
<script src="errors.js"></script> <!-- <script src="errors.js"></script> -->
<!-- <script src="miscViews.js"></script> --> <!-- <script src="miscViews.js"></script> -->

View file

@ -85,3 +85,5 @@ LevelEngine.prototype.compareTrees = function(treeA, treeB) {
var levelEngine = new LevelEngine(); var levelEngine = new LevelEngine();
exports.LevelEngine = LevelEngine;