Fixing provider issue in source

This commit is contained in:
Rob Rodriguez 2014-02-04 04:56:42 -08:00 committed by indexzero
parent 51653e6486
commit a3589fab95

View file

@ -210,6 +210,12 @@ Provider.prototype.init = function (options) {
// Retrieves the value for the specified key (if any). // Retrieves the value for the specified key (if any).
// //
Provider.prototype.get = function (key, callback) { Provider.prototype.get = function (key, callback) {
if (typeof key === 'function') {
// Allow a * key call to be made
callback = key;
key = null;
}
// //
// If there is no callback we can short-circuit into the default // If there is no callback we can short-circuit into the default
// logic for traversing stores. // logic for traversing stores.