@quenty/binder 14.13.0 → 14.14.0
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
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [14.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.13.0...@quenty/binder@14.14.0) (2024-11-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/binder
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [14.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.12.1...@quenty/binder@14.13.0) (2024-11-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/binder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.14.0",
|
|
4
4
|
"description": "Utility object to Bind a class to Roblox object, and associated helper methods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9c3afd151641bac32d4bcc66e1e5eb218d095b41"
|
|
43
43
|
}
|
package/src/Shared/Binder.lua
CHANGED
|
@@ -345,8 +345,8 @@ function Binder:GetClassAddedSignal()
|
|
|
345
345
|
return self._classAddedSignal
|
|
346
346
|
end
|
|
347
347
|
|
|
348
|
-
self._classAddedSignal = Signal.new() -- :fire(class, inst)
|
|
349
|
-
|
|
348
|
+
self._classAddedSignal = self._maid:Add(Signal.new()) -- :fire(class, inst)
|
|
349
|
+
|
|
350
350
|
return self._classAddedSignal
|
|
351
351
|
end
|
|
352
352
|
|
|
@@ -360,8 +360,7 @@ function Binder:GetClassRemovingSignal()
|
|
|
360
360
|
return self._classRemovingSignal
|
|
361
361
|
end
|
|
362
362
|
|
|
363
|
-
self._classRemovingSignal = Signal.new() -- :fire(class, inst)
|
|
364
|
-
self._maid:GiveTask(self._classRemovingSignal)
|
|
363
|
+
self._classRemovingSignal = self._maid:Add(Signal.new()) -- :fire(class, inst)
|
|
365
364
|
|
|
366
365
|
return self._classRemovingSignal
|
|
367
366
|
end
|
|
@@ -376,8 +375,7 @@ function Binder:GetClassRemovedSignal()
|
|
|
376
375
|
return self._classRemovedSignal
|
|
377
376
|
end
|
|
378
377
|
|
|
379
|
-
self._classRemovedSignal = Signal.new() -- :fire(class, inst)
|
|
380
|
-
self._maid:GiveTask(self._classRemovedSignal)
|
|
378
|
+
self._classRemovedSignal = self._maid:Add(Signal.new()) -- :fire(class, inst)
|
|
381
379
|
|
|
382
380
|
return self._classRemovedSignal
|
|
383
381
|
end
|
|
@@ -29,16 +29,14 @@ function BoundChildCollection.new(binder, parent)
|
|
|
29
29
|
@prop ClassAdded Signal<T>
|
|
30
30
|
@within BoundChildCollection
|
|
31
31
|
]=]
|
|
32
|
-
self.ClassAdded = Signal.new() -- :Fire(class)
|
|
33
|
-
self._maid:GiveTask(self.ClassAdded)
|
|
32
|
+
self.ClassAdded = self._maid:Add(Signal.new()) -- :Fire(class)
|
|
34
33
|
|
|
35
34
|
--[=[
|
|
36
35
|
Fires on class removal
|
|
37
36
|
@prop ClassRemoved Signal<T>
|
|
38
37
|
@within BoundChildCollection
|
|
39
38
|
]=]
|
|
40
|
-
self.ClassRemoved = Signal.new() -- :Fire(class)
|
|
41
|
-
self._maid:GiveTask(self.ClassRemoved)
|
|
39
|
+
self.ClassRemoved = self._maid:Add(Signal.new()) -- :Fire(class)
|
|
42
40
|
|
|
43
41
|
self._classes = {} -- [class] = true
|
|
44
42
|
self._size = 0
|