Fixing provider issue in source

master
Rob Rodriguez 2014-02-04 04:56:42 -08:00 committed by indexzero
parent 51653e6486
commit a3589fab95
1 changed files with 6 additions and 0 deletions

View File

@ -210,6 +210,12 @@ Provider.prototype.init = function (options) {
// Retrieves the value for the specified key (if any).
//
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
// logic for traversing stores.