@keenmate/svelte-spa-router 2.0.0 → 2.0.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/Router.svelte +5 -5
- package/package.json +1 -1
package/Router.svelte
CHANGED
|
@@ -218,11 +218,11 @@
|
|
|
218
218
|
throw Error("Action 'link' can only be used with <a> tags")
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
const self = {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
221
|
+
const self = {}
|
|
222
|
+
|
|
223
|
+
self.update = function(updated) {
|
|
224
|
+
updated = linkOpts(updated)
|
|
225
|
+
updateLink.call(self, node, updated)
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
updateLink.call(self, node, opts)
|