@creative-web-solution/front-library 7.1.13 → 7.1.15

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,6 +1,17 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## 7.1.15
5
+
6
+ * Fix type in `wait()` helper
7
+
8
+
9
+ ## 7.1.14
10
+
11
+ * EventManager: Fix bug on array
12
+ * SkinSelect: Update title on select when dispatch event is off
13
+
14
+
4
15
  ## 7.1.13
5
16
 
6
17
  * SkinSelect: Update fire event on select
@@ -202,6 +202,9 @@ export const off = function( $elements: any, options: FLib.Events.EventsManager.
202
202
  let registry: FLib.Events.EventsManager.DataRegistry[] = useNativeDOMEvents ? DOMRegistry : ObjectRegistry;
203
203
 
204
204
  registry.forEach( item => {
205
+ if ( item.$element !== $element ) {
206
+ return;
207
+ }
205
208
  const callback = item.delegate || item.options._internalCallback || item.options.callback;
206
209
 
207
210
  if ( !options.callback || options.callback === item.options.callback ) {
package/Helpers/Wait.ts CHANGED
@@ -24,7 +24,7 @@
24
24
  *
25
25
  * @returns A promise with a .off() function to cancel the waiting
26
26
  */
27
- export function wait( waitFor: number | string = -1 ): Promise<any> & { off(); } {
27
+ export function wait( waitFor: number | 'idle' = -1 ): Promise<any> & { off(); } {
28
28
  let timeoutId: any, _resolve;
29
29
 
30
30
 
@@ -339,6 +339,9 @@ export default class SkinSelect implements FLib.SkinSelect.SkinSelect {
339
339
  "eventsName": "change"
340
340
  } );
341
341
  }
342
+ else {
343
+ this.updateTitle();
344
+ }
342
345
 
343
346
  return this;
344
347
  }
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.13
3
+ @version: 7.1.15
4
4
 
5
5
 
6
6
  ## Use
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "7.1.13",
5
+ "version": "7.1.15",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],