@ni/fast-foundation 10.2.2 → 10.2.3
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/dist/fast-foundation.js +2 -12
- package/dist/fast-foundation.min.js +215 -215
- package/package.json +2 -2
package/dist/fast-foundation.js
CHANGED
|
@@ -1327,9 +1327,6 @@ function compileTemplate(template, directives) {
|
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
// A singleton Range instance used to efficiently remove ranges of DOM nodes.
|
|
1331
|
-
// See the implementation of HTMLView below for further details.
|
|
1332
|
-
const range = document.createRange();
|
|
1333
1330
|
/**
|
|
1334
1331
|
* The standard View implementation, which also implements ElementView and SyntheticView.
|
|
1335
1332
|
* @public
|
|
@@ -1464,23 +1461,16 @@ class HTMLView {
|
|
|
1464
1461
|
this.source = null;
|
|
1465
1462
|
}
|
|
1466
1463
|
/**
|
|
1467
|
-
*
|
|
1464
|
+
* Disposes of a contiguous range of synthetic view instances.
|
|
1468
1465
|
* @param views - A contiguous range of views to be disposed.
|
|
1469
1466
|
*/
|
|
1470
1467
|
static disposeContiguousBatch(views) {
|
|
1471
1468
|
if (views.length === 0) {
|
|
1472
1469
|
return;
|
|
1473
1470
|
}
|
|
1474
|
-
range.setStartBefore(views[0].firstChild);
|
|
1475
|
-
range.setEndAfter(views[views.length - 1].lastChild);
|
|
1476
|
-
range.deleteContents();
|
|
1477
1471
|
for (let i = 0, ii = views.length; i < ii; ++i) {
|
|
1478
1472
|
const view = views[i];
|
|
1479
|
-
|
|
1480
|
-
const oldSource = view.source;
|
|
1481
|
-
for (let j = 0, jj = behaviors.length; j < jj; ++j) {
|
|
1482
|
-
behaviors[j].unbind(oldSource);
|
|
1483
|
-
}
|
|
1473
|
+
view.dispose();
|
|
1484
1474
|
}
|
|
1485
1475
|
}
|
|
1486
1476
|
}
|