22
22
< div class ='fl pad1y space-right2 '>
23
23
< span class ="strong "> 100% </ span >
24
24
< span class ="quiet "> Statements</ span >
25
- < span class ='fraction '> 605/605 </ span >
25
+ < span class ='fraction '> 606/606 </ span >
26
26
</ div >
27
27
< div class ='fl pad1y space-right2 '>
28
28
< span class ="strong "> 100% </ span >
29
29
< span class ="quiet "> Branches</ span >
30
- < span class ='fraction '> 341/341 </ span >
30
+ < span class ='fraction '> 335/335 </ span >
31
31
</ div >
32
32
< div class ='fl pad1y space-right2 '>
33
33
< span class ="strong "> 100% </ span >
34
34
< span class ="quiet "> Functions</ span >
35
- < span class ='fraction '> 97/97 </ span >
35
+ < span class ='fraction '> 99/99 </ span >
36
36
</ div >
37
37
< div class ='fl pad1y space-right2 '>
38
38
< span class ="strong "> 100% </ span >
39
39
< span class ="quiet "> Lines</ span >
40
- < span class ='fraction '> 590/590 </ span >
40
+ < span class ='fraction '> 592/592 </ span >
41
41
</ div >
42
42
</ div >
43
43
</ div >
@@ -1446,7 +1446,12 @@ <h1>
1446
1446
1401
1447
1447
1402
1448
1448
1403
1449
- 1404</ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2×</ span >
1449
+ 1404
1450
+ 1405
1451
+ 1406
1452
+ 1407
1453
+ 1408
1454
+ 1409</ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2×</ span >
1450
1455
< span class ="cline-any cline-neutral "> </ span >
1451
1456
< span class ="cline-any cline-neutral "> </ span >
1452
1457
< span class ="cline-any cline-neutral "> </ span >
@@ -1924,6 +1929,15 @@ <h1>
1924
1929
< span class ="cline-any cline-neutral "> </ span >
1925
1930
< span class ="cline-any cline-neutral "> </ span >
1926
1931
< span class ="cline-any cline-neutral "> </ span >
1932
+ < span class ="cline-any cline-yes "> 2×</ span >
1933
+ < span class ="cline-any cline-yes "> 2×</ span >
1934
+ < span class ="cline-any cline-yes "> 206×</ span >
1935
+ < span class ="cline-any cline-yes "> 2×</ span >
1936
+ < span class ="cline-any cline-neutral "> </ span >
1937
+ < span class ="cline-any cline-neutral "> </ span >
1938
+ < span class ="cline-any cline-neutral "> </ span >
1939
+ < span class ="cline-any cline-neutral "> </ span >
1940
+ < span class ="cline-any cline-neutral "> </ span >
1927
1941
< span class ="cline-any cline-neutral "> </ span >
1928
1942
< span class ="cline-any cline-neutral "> </ span >
1929
1943
< span class ="cline-any cline-yes "> 2×</ span >
@@ -2201,16 +2215,13 @@ <h1>
2201
2215
< span class ="cline-any cline-neutral "> </ span >
2202
2216
< span class ="cline-any cline-neutral "> </ span >
2203
2217
< span class ="cline-any cline-yes "> 2×</ span >
2204
- < span class ="cline-any cline-yes "> 2×</ span >
2205
- < span class ="cline-any cline-yes "> 1×</ span >
2206
2218
< span class ="cline-any cline-yes "> 1×</ span >
2207
2219
< span class ="cline-any cline-yes "> 206×</ span >
2208
2220
< span class ="cline-any cline-yes "> 206×</ span >
2209
2221
< span class ="cline-any cline-neutral "> </ span >
2210
2222
< span class ="cline-any cline-neutral "> </ span >
2211
2223
< span class ="cline-any cline-neutral "> </ span >
2212
2224
< span class ="cline-any cline-neutral "> </ span >
2213
- < span class ="cline-any cline-neutral "> </ span >
2214
2225
< span class ="cline-any cline-yes "> 2×</ span >
2215
2226
< span class ="cline-any cline-neutral "> </ span >
2216
2227
< span class ="cline-any cline-yes "> 69×</ span >
@@ -2848,8 +2859,7 @@ <h1>
2848
2859
< span class ="cline-any cline-neutral "> </ span >
2849
2860
< span class ="cline-any cline-neutral "> </ span >
2850
2861
< span class ="cline-any cline-neutral "> </ span >
2851
- < span class ="cline-any cline-yes "> 2×</ span >
2852
- < span class ="cline-any cline-neutral "> </ span > </ td > < td class ="text "> < pre class ="prettyprint lang-js "> var hyperHTML = (function (globalDocument, majinbuu) {'use strict';
2862
+ < span class ="cline-any cline-yes "> 2×</ span > </ td > < td class ="text "> < pre class ="prettyprint lang-js "> var hyperHTML = (function (globalDocument, majinbuu) {'use strict';
2853
2863
2854
2864
/*! (c) 2017 Andrea Giammarchi @WebReflection, (ISC) */
2855
2865
@@ -3033,7 +3043,7 @@ <h1>
3033
3043
var hyper = hypers.get(this);
3034
3044
if (
3035
3045
!hyper ||
3036
- hyper.template !== (FF ? unique(template) : template)
3046
+ hyper.template !== TL( template)
3037
3047
) {
3038
3048
hyper = upgrade.apply(this, arguments);
3039
3049
hypers.set(this, hyper);
@@ -3323,6 +3333,15 @@ <h1>
3323
3333
3324
3334
// beside IE, old WebKit browsers don't have `children` in DocumentFragment
3325
3335
var WK = !('children' in featureFragment);
3336
+
3337
+ // both Firefox < 55 and TypeScript have issues with template literals
3338
+ // this lazy defined callback should spot issues right away
3339
+ // and in the best case scenario become a no-op
3340
+ var TL = function (template) {
3341
+ if (template.propertyIsEnumerable('raw') || FF) TL = unique;
3342
+ else TL = function (t) { return t; };
3343
+ return TL(template);
3344
+ };
3326
3345
3327
3346
// ---------------------------------------------
3328
3347
// Helpers
@@ -3603,14 +3622,11 @@ <h1>
3603
3622
var transformers = {};
3604
3623
3605
3624
// normalize Firefox issue with template literals
3606
- var templateObjects, unique;
3607
- if (FF) {
3608
- templateObjects = {};
3609
- unique = function (template) {
3610
- var key = '_' + template.join(UIDC);
3611
- return templateObjects[key] ||
3612
- (templateObjects[key] = template);
3613
- };
3625
+ var templateObjects = {}, unique;
3626
+ function unique(template) {
3627
+ var key = '_' + template.join(UIDC);
3628
+ return templateObjects[key] ||
3629
+ (templateObjects[key] = template);
3614
3630
}
3615
3631
3616
3632
// use native .append(...childNodes) where available
@@ -3940,7 +3956,7 @@ <h1>
3940
3956
// create a template, if unknown
3941
3957
// upgrade a node to use such template for future updates
3942
3958
function upgrade(template) {
3943
- if (FF) template = unique (template);
3959
+ template = TL (template);
3944
3960
var updates;
3945
3961
var info = templates.get(template) ||
3946
3962
createTemplate.call(this, template);
@@ -3985,7 +4001,7 @@ <h1>
3985
4001
return type === 'adopt' ?
3986
4002
function adopt(statics) {
3987
4003
var args = arguments;
3988
- if (FF) statics = unique (statics);
4004
+ statics = TL (statics);
3989
4005
if (template !== statics) {
3990
4006
setup = true;
3991
4007
template = statics;
@@ -4011,7 +4027,7 @@ <h1>
4011
4027
return adopter;
4012
4028
} :
4013
4029
function update(statics) {
4014
- if (FF) statics = unique (statics);
4030
+ statics = TL (statics);
4015
4031
if (template !== statics) {
4016
4032
setup = true;
4017
4033
template = statics;
@@ -4044,7 +4060,7 @@ <h1>
4044
4060
// changes needed to show the a new list
4045
4061
// where there was another one.
4046
4062
// There is a limit, in terms of performance,
4047
- // on how bug can the optimal computation be,
4063
+ // on how big can the optimal computation be,
4048
4064
// so if you change this value be sure your
4049
4065
// target hardware is good enough.
4050
4066
hyper.MAX_LIST_SIZE = 1000;
@@ -4251,14 +4267,13 @@ <h1>
4251
4267
}()));
4252
4268
4253
4269
// umd.KISS
4254
- try { module.exports = hyperHTML; } catch(o_O) {}
4255
- </ pre > </ td > </ tr >
4270
+ try { module.exports = hyperHTML; } catch(o_O) {}</ pre > </ td > </ tr >
4256
4271
</ table > </ pre >
4257
4272
< div class ='push '> </ div > <!-- for sticky footer -->
4258
4273
</ div > <!-- /wrapper -->
4259
4274
< div class ='footer quiet pad2 space-top1 center small '>
4260
4275
Code coverage
4261
- generated by < a href ="http://istanbul-js.org/ " target ="_blank "> istanbul</ a > at Wed Sep 06 2017 16:32:47 GMT+0100 (BST)
4276
+ generated by < a href ="http://istanbul-js.org/ " target ="_blank "> istanbul</ a > at Thu Sep 07 2017 10:48:51 GMT+0100 (BST)
4262
4277
</ div >
4263
4278
</ div >
4264
4279
< script src ="../prettify.js "> </ script >
0 commit comments