| 87 | return Basil.utils.isString(storages) ? [storages] : []; |
| 88 | }, |
| 89 | _toStoredKey = function (namespace, path, delimiter) { |
| 90 | var key = ''; |
| 91 | if (_isValidKey(path)) { |
| 92 | key += path; |
| 93 | } else if (Basil.utils.isArray(path)) { |
| 94 | path = Basil.utils.isFunction(path.filter) ? path.filter(_isValidKey) : path; |
| 95 | key = path.join(delimiter); |
| 96 | } |
| 97 | return key && _isValidKey(namespace) ? namespace + delimiter + key : key; |
| 98 | }, |
| 99 | _toKeyName = function (namespace, key, delimiter) { |
| 100 | if (!_isValidKey(namespace)) |
| 101 | return key; |