squire-0.2.0.js revision 89092dc10fe08b037266c0b4efb94b221f6fffb3
define(function() {
/**
* Utility Functions
*/
};
var isFunction = function(fn) {
};
return i;
}
}
return -1;
};
var breaker = {};
if (obj === null) {
return;
}
return;
}
}
} else {
return;
}
}
}
}
};
/**
* Require.js Abstractions
*/
var getContext = function(id) {
};
}
};
/**
* Create a context name incrementor.
*/
var idCounter = 0;
return 'context' + id;
};
var Squire = function() {
this.mocks = {};
this._store = [];
this.requiredCallbacks = [];
};
/**
* Hook to call when the require function is called.
*/
};
/**
* Configuration of Squire.js, called from constructor or manually takes the
* name of a require.js context to configure it.
*/
var configuration = {};
var property;
// Default the context
if (typeof context === 'undefined') {
}
if ( ! context) {
throw new Error('This context has not been created!');
}
if (key !== 'deps') {
}
});
};
var alias;
if (typeof path === 'object') {
}, this);
} else {
if (isFunction(mock)) {
} else {
}
}
return this;
};
this.store(pathToStore);
}, this);
}
return this;
};
var magicModuleName = 'mocks';
var self = this;
var path, magicModuleLocation;
if (magicModuleLocation !== -1) {
}
});
this.load(dependencies, function() {
var store = {};
var dependency;
if (magicModuleLocation !== -1) {
});
});
}
});
}, errback);
};
var path;
this.clean(mockToClean);
}, this);
} else {
}, this);
}
return this;
};
var path;
}, this);
};
var self = this;
done();
});
};
};
return run;
};
/**
* Utilities
*/
return function() {
return what;
};
};
return function() {
return function() {
return what;
};
};
};
return Squire;
});