@@ -23,16 +23,16 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
2323 < div class ='clearfix '>
2424
2525 < div class ='fl pad1y space-right2 '>
26- < span class ="strong "> 91.17 % </ span >
26+ < span class ="strong "> 90.87 % </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 217/238 </ span >
28+ < span class ='fraction '> 219/241 </ span >
2929 </ div >
3030
3131
3232 < div class ='fl pad1y space-right2 '>
33- < span class ="strong "> 85.29 % </ span >
33+ < span class ="strong "> 84.61 % </ span >
3434 < span class ="quiet "> Branches</ span >
35- < span class ='fraction '> 87/102 </ span >
35+ < span class ='fraction '> 88/104 </ span >
3636 </ div >
3737
3838
@@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
4444
4545
4646 < div class ='fl pad1y space-right2 '>
47- < span class ="strong "> 91.1 % </ span >
47+ < span class ="strong "> 90.79 % </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 215/236 </ span >
49+ < span class ='fraction '> 217/239 </ span >
5050 </ div >
5151
5252
@@ -459,7 +459,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
459459< a name ='L394 '> </ a > < a href ='#L394 '> 394</ a >
460460< a name ='L395 '> </ a > < a href ='#L395 '> 395</ a >
461461< a name ='L396 '> </ a > < a href ='#L396 '> 396</ a >
462- < a name ='L397 '> </ a > < a href ='#L397 '> 397</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-neutral "> </ span >
462+ < a name ='L397 '> </ a > < a href ='#L397 '> 397</ a >
463+ < a name ='L398 '> </ a > < a href ='#L398 '> 398</ a >
464+ < a name ='L399 '> </ a > < a href ='#L399 '> 399</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-neutral "> </ span >
463465< span class ="cline-any cline-yes "> 6x</ span >
464466< span class ="cline-any cline-yes "> 6x</ span >
465467< span class ="cline-any cline-yes "> 6x</ span >
@@ -498,12 +500,15 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
498500< span class ="cline-any cline-neutral "> </ span >
499501< span class ="cline-any cline-yes "> 2x</ span >
500502< span class ="cline-any cline-yes "> 2x</ span >
503+ < span class ="cline-any cline-no "> </ span >
504+ < span class ="cline-any cline-yes "> 2x</ span >
501505< span class ="cline-any cline-yes "> 2x</ span >
502506< span class ="cline-any cline-no "> </ span >
503507< span class ="cline-any cline-yes "> 2x</ span >
504508< span class ="cline-any cline-yes "> 2x</ span >
505509< span class ="cline-any cline-yes "> 2x</ span >
506510< span class ="cline-any cline-yes "> 2x</ span >
511+ < span class ="cline-any cline-yes "> 2x</ span >
507512< span class ="cline-any cline-neutral "> </ span >
508513< span class ="cline-any cline-neutral "> </ span >
509514< span class ="cline-any cline-yes "> 22x</ span >
@@ -854,7 +859,6 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
854859< span class ="cline-any cline-neutral "> </ span >
855860< span class ="cline-any cline-neutral "> </ span >
856861< span class ="cline-any cline-neutral "> </ span >
857- < span class ="cline-any cline-neutral "> </ span >
858862< span class ="cline-any cline-neutral "> </ span > </ td > < td class ="text "> < pre class ="prettyprint lang-js "> import { Model } from '../model/model';
859863import { View } from '../view/view';
860864import { RangeSliderOptions } from '../../glob-interface';
@@ -893,15 +897,17 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
893897 this.model.update(options);
894898 return true;
895899 }
896-
897- async < span class ="missing-if-branch " title ="if path not taken " > I</ span > destroy() {
898- this.loc< span class ="cstat-no " title ="statement not covered " > k = true;</ span >
899- const elem = await this.view.elem;
900+ < span class ="missing-if-branch " title ="if path not taken " > I</ span >
901+ async dest< span class ="cstat-no " title ="statement not covered " > roy() {</ span >
902+ this.lock = true;
903+ if (< span class ="missing-if-branch " title ="if path not taken " > I</ span > !this.view) return false;
904+ const el< span class ="cstat-no " title ="statement not covered " > em = await thi</ span > s.view.elem;
900905 if (elem.constructor.name != 'HTMLInputElement') return false;
901906 await $.data(elem, 'RangeSliderFox', null);
902907 await this.view.destroy();
903908 this.view = null;
904909 this.model = null;
910+ return true;
905911 }
906912
907913
@@ -967,11 +973,11 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
967973 if (key != 'DataAttributes') return false;
968974
969975 this.funAttributes = () => {
970- th < span class =" missing-if-branch " title =" if path not taken " > I </ span > is .update(option < span class =" branch-1 cbranch-no " title =" branch not covered " > s); </ span >
971- };< span class ="cstat- no " title ="statement not covered " > </ span >
976+ this .update(options);
977+ };< span class ="branch-1 cbranch- no " title ="branch not covered " > < span class =" missing-if-branch " title =" if path not taken " > I </ span > </ span >
972978< span class ="cstat-no " title ="statement not covered " > </ span >
973979 if (this< span class ="cstat-no " title ="statement not covered " > .startFL)</ span >
974- this.funAttributes ();
980+ this.f < span class =" cstat-no " title =" statement not covered " > unAttributes ();</ span >
975981
976982 return true;
977983 };
@@ -986,11 +992,11 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
986992
987993 if (lockFl)
988994 this.view.updateTipMinMax(options.min, options.max);
989- < span class =" cstat-no " title =" statement not covered " > </ span >
990- const ob < span class ="cstat-no " title ="statement not covered " > j = this.model</ span > .getOptions();
991- if (< span class ="cstat-no " title ="statement not covered " > obj. grid && lockFl) { </ span >
992- th< span class ="cstat-no " title ="statement not covered " > is.view.delet </ span > eGrid();
993- this .model.createMark ();
995+
996+ cons < span class ="cstat-no " title ="statement not covered " > t obj = this.model.getOptions();</ span >
997+ if (obj. < span class ="cstat-no " title ="statement not covered " > grid && lockFl</ span > ) {
998+ th< span class ="cstat-no " title ="statement not covered " > is.view.deleteGrid(); </ span >
999+ th < span class =" cstat-no " title =" statement not covered " > is .model.crea </ span > teMark ();
9941000 this.view.createDomGrid();
9951001 }
9961002
@@ -1024,9 +1030,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
10241030 const type = options.type;
10251031
10261032 const lockFl = this.startFL && !this.resetFL;
1027- this< span class =" missing-if-branch " title =" if path not taken " > I </ span > .view.createDotElem(type); // create dot
1028- const fr < span class ="cstat-no " title ="statement not covered " > om = this.mode </ span > l .calcPositionDotFrom();
1029- this.view .setDotFrom(from );
1033+ this.view.createDotElem(type); // create dot
1034+ cons < span class ="missing-if-branch " title ="if path not taken " > I </ span > t from = this.model .calcPositionDotFrom();
1035+ this.vie < span class =" cstat-no " title =" statement not covered " > w .setDotFrom(f </ span > rom );
10301036
10311037 if (type == 'double') {
10321038 const to = this.model.calcPositionDotTo();
@@ -1093,19 +1099,19 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
10931099 this.view.createDomGrid();
10941100 }
10951101 }
1096- retu < span class =" missing-if-branch " title =" if path not taken " > I </ span > rn true;
1097- };< span class ="cstat-no " title ="statement not covered " > </ span >
1102+ return true;
1103+ };< span class ="missing-if-branch " title ="if path not taken " > I </ span >
10981104< span class ="cstat-no " title ="statement not covered " > </ span >
10991105< span class ="cstat-no " title ="statement not covered " > </ span >
1100- private ha < span class ="cstat-no " title ="statement not covered " > ndleOrientationData = async (options: TOB) => {</ span >
1101- const key = < span class ="cstat-no " title ="statement not covered " > options.key;</ span >
1106+ private handleOrientation < span class ="cstat-no " title ="statement not covered " > Da </ span > ta = async (options: TOB) => {
1107+ const ke < span class ="cstat-no " title ="statement not covered " > y = options.key;</ span >
11021108 if (key != '< span class ="cstat-no " title ="statement not covered " > OrientationData') return false;</ span >
1103-
1104- await this.view.setOrientation(options.orientation);
1105- const obj = < span class ="cstat-no " title ="statement not covered " > await this.model.getOptions();</ span >
1106- this.updateHints(obj.type, obj.from, obj.to);
11071109< span class ="cstat-no " title ="statement not covered " > </ span >
1108- //-------- grid
1110+ await this.view.setOrientation(options.orientation);
1111+ const obj = await this.model.getOptions();
1112+ this.updateH< span class ="cstat-no " title ="statement not covered " > ints(obj.type, obj.from, obj.to</ span > );
1113+
1114+ //------< span class ="cstat-no " title ="statement not covered " > -- grid</ span >
11091115
11101116 if (obj.grid) {
11111117 this.view.deleteGrid();
@@ -1124,9 +1130,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
11241130 return true;
11251131 };
11261132
1127- < span class =" missing-if-branch " title =" if path not taken " > I </ span >
1128- private ha < span class ="cstat-no " title ="statement not covered " > ndleHintsData </ span > = (options: TOB) => {
1129- const key = options.key ;
1133+
1134+ privat < span class ="missing-if-branch " title ="if path not taken " > I </ span > e handleHintsData = (options: TOB) => {
1135+ const ke < span class =" cstat-no " title =" statement not covered " > y = options.ke </ span > y ;
11301136 if (key != 'HintsData') return false;
11311137
11321138 const wrapWH = this.view.getWrapWH();
@@ -1149,9 +1155,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
11491155 if (objTip.fromWH || objTip.toWH) {
11501156 const fromXY = await this.model.calcPositionTipFrom(objTip.fromWH);
11511157 let toXY = 0;
1152- le < span class =" missing-if-branch " title =" if path not taken " > I </ span > t singleXY = 0;
1153- if (ty < span class ="cstat-no " title ="statement not covered " > pe == 'double'</ span > ) {
1154- toXY = await this.model.calcPositionTipTo(objTip.toWH);
1158+ let singleXY = 0;
1159+ if< span class ="missing-if-branch " title ="if path not taken " > I </ span > (type == 'double') {
1160+ toXY< span class =" cstat-no " title =" statement not covered " > = await this.</ span > model.calcPositionTipTo(objTip.toWH);
11551161 singleXY = await this.model.calcPositionTipSingle(objTip.singleWH);
11561162 } else {
11571163 await this.view.deleteTipTo();
@@ -1165,9 +1171,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
11651171
11661172 }
11671173 await this.view.checkVisibleTip();
1168- < span class ="missing-if-branch " title ="if path not taken " > I</ span >
1169- }< span class ="cstat-no " title ="statement not covered " > </ span >
11701174
1175+ }< span class ="missing-if-branch " title ="if path not taken " > I</ span >
1176+ < span class ="cstat-no " title ="statement not covered " > </ span >
11711177
11721178 private handleDisabledData = (options: TOB) => {
11731179 const key = options.key;
@@ -1258,7 +1264,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">range-sli
12581264 < div class ='footer quiet pad2 space-top1 center small '>
12591265 Code coverage generated by
12601266 < a href ="https://istanbul.js.org/ " target ="_blank "> istanbul</ a >
1261- at Tue Dec 14 2021 19:15:57 GMT+0300 (Москва, стандартное время)
1267+ at Sat Dec 18 2021 13:49:22 GMT+0300 (Москва, стандартное время)
12621268 </ div >
12631269 </ div >
12641270 < script src ="../../../prettify.js "> </ script >
0 commit comments