Comparing version 0.0.9 to 0.0.10
@@ -51,2 +51,23 @@ /** | ||
/** | ||
* Method to discover if a storeName has been registered | ||
* @param {Object|String} store The store to check | ||
* @returns {boolean} | ||
*/ | ||
Dispatcher.isRegistered = function (store) { | ||
var storeName = Dispatcher.getStoreName(store), | ||
storeInstance = Dispatcher.stores[storeName]; | ||
if (!storeInstance) { | ||
return false; | ||
} | ||
if ('function' === typeof store) { | ||
if (store !== storeInstance) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; | ||
/** | ||
* Gets a name from a store | ||
@@ -53,0 +74,0 @@ * @param {String|Object} store The store name or class from which to extract |
{ | ||
"name": "dispatchr", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "A Flux dispatcher for applications that run on the server and the client.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
284
42612