Fixing provider issue in source
This commit is contained in:
parent
51653e6486
commit
a3589fab95
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue