@trunkjs/browser-utils 1.0.38 → 1.0.39

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.39 (2026-03-06)
2
+
3
+ This was a version bump only for browser-utils to align it with other projects, there were no code changes.
4
+
1
5
  ## 1.0.38 (2026-02-12)
2
6
 
3
7
  This was a version bump only for browser-utils to align it with other projects, there were no code changes.
package/index.js CHANGED
@@ -317,10 +317,10 @@ function it(e, t) {
317
317
  return function(i, r) {
318
318
  if (r.kind !== "method") throw new Error("@Listen nur für Methoden");
319
319
  return r.addInitializer(function() {
320
- const a = this.constructor;
320
+ const a = this;
321
321
  (a[v] || (a[v] = [])).push({
322
322
  method: r.name,
323
- events: n,
323
+ events: [...n],
324
324
  opts: t
325
325
  });
326
326
  }), function(...a) {
@@ -355,7 +355,7 @@ function rt(e) {
355
355
  return n = new WeakMap(), i = new WeakSet(), W = function() {
356
356
  var o, d, m;
357
357
  (o = u(this, n)) == null || o.abort(), w(this, n, new AbortController());
358
- const s = this.constructor[v] || [];
358
+ const s = this[v] || [];
359
359
  for (const f of s) {
360
360
  const g = F(this, (d = f.opts) == null ? void 0 : d.target), b = ((m = f.opts) == null ? void 0 : m.options) ?? {}, C = this[f.method].bind(this);
361
361
  for (const D of f.events)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkjs/browser-utils",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "main": "./index.js",
5
5
  "dependencies": {},
6
6
  "type": "module",