@ouroboros/browser 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hash.js +1 -1
- package/hash.ts +3 -1
- package/package.json +1 -1
package/hash.js
CHANGED
|
@@ -173,7 +173,7 @@ function subscribe(name, callback) {
|
|
|
173
173
|
// If we don't already have the name
|
|
174
174
|
if (!(name in oSubscribe)) {
|
|
175
175
|
// Create a new subscribe instance
|
|
176
|
-
oSubscribe[name] = new Subscribe();
|
|
176
|
+
oSubscribe[name] = new Subscribe(name in dHash ? dHash[name] : null);
|
|
177
177
|
}
|
|
178
178
|
// Add the callback and return
|
|
179
179
|
return oSubscribe[name].subscribe(callback);
|
package/hash.ts
CHANGED
|
@@ -220,7 +220,9 @@ function subscribe(name: string, callback: SubscribeCallback): SubscribeReturn {
|
|
|
220
220
|
if(!(name in oSubscribe)) {
|
|
221
221
|
|
|
222
222
|
// Create a new subscribe instance
|
|
223
|
-
oSubscribe[name] = new Subscribe(
|
|
223
|
+
oSubscribe[name] = new Subscribe(
|
|
224
|
+
name in (dHash as HashType) ? (dHash as HashType)[name] : null
|
|
225
|
+
);
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
// Add the callback and return
|