mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-15 00:54:25 +02:00
Trying to be able to test in node GAHHHH
This commit is contained in:
parent
c9fb851ad6
commit
aadeab8299
14 changed files with 4186 additions and 69 deletions
|
@ -1,3 +1,8 @@
|
|||
if (!require('../util').isBrowser()) {
|
||||
var _ = require('underscore');
|
||||
var Backbone = require('backbone');
|
||||
}
|
||||
|
||||
var MyError = Backbone.Model.extend({
|
||||
defaults: {
|
||||
type: 'MyError',
|
||||
|
|
4
src/js/util/index.js
Normal file
4
src/js/util/index.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
exports.isBrowser = function() {
|
||||
return (typeof window === undefined);
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue