@stylable/runtime
Advanced tools
Comparing version 3.1.1 to 3.1.3
@@ -57,4 +57,4 @@ "use strict"; | ||
const classNames = []; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < arguments.length; i++) { | ||
// eslint-disable-next-line prefer-rest-params | ||
const item = arguments[i]; | ||
@@ -61,0 +61,0 @@ if (item) { |
@@ -15,6 +15,5 @@ "use strict"; | ||
const render = (container, data = []) => { | ||
let node; | ||
if (data.length) { | ||
let node; | ||
let next = first; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < data.length; i++) { | ||
@@ -21,0 +20,0 @@ node = renderNode(data[i]); |
{ | ||
"name": "@stylable/runtime", | ||
"version": "3.1.1", | ||
"version": "3.1.3", | ||
"description": "Stylable runtime DOM integration", | ||
@@ -31,3 +31,3 @@ "main": "cjs/index.js", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "f793219f09b3fea83005ecd1848d1c9dfeb15df2" | ||
"gitHead": "ebe8f0a6a6472621e671b3333ed410660325b73a" | ||
} |
@@ -1,2 +0,2 @@ | ||
/* runtime version: 3.1.1 */ | ||
/* runtime version: 3.1.3 */ | ||
function StylableRuntime(exports){ | ||
@@ -45,6 +45,5 @@ exports = exports || {}; | ||
if (data === void 0) { data = []; } | ||
var node; | ||
if (data.length) { | ||
var node = void 0; | ||
var next = first; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < data.length; i++) { | ||
@@ -223,4 +222,4 @@ node = renderNode(data[i]); | ||
var classNames = []; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < arguments.length; i++) { | ||
// eslint-disable-next-line prefer-rest-params | ||
var item = arguments[i]; | ||
@@ -227,0 +226,0 @@ if (item) { |
@@ -1,2 +0,2 @@ | ||
/* runtime version: 3.1.1 */ | ||
/* runtime version: 3.1.3 */ | ||
function StylableRuntime(exports){ | ||
@@ -45,6 +45,5 @@ exports = exports || {}; | ||
if (data === void 0) { data = []; } | ||
var node; | ||
if (data.length) { | ||
var node = void 0; | ||
var next = first; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < data.length; i++) { | ||
@@ -223,4 +222,4 @@ node = renderNode(data[i]); | ||
var classNames = []; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < arguments.length; i++) { | ||
// eslint-disable-next-line prefer-rest-params | ||
var item = arguments[i]; | ||
@@ -227,0 +226,0 @@ if (item) { |
@@ -38,3 +38,3 @@ import { CacheStyleNodeRenderer } from './cached-node-renderer'; | ||
if (this.renderer) { | ||
this.renderer.render(this.window!.document.head!, this.styles); | ||
this.renderer.render(this.window!.document.head, this.styles); | ||
} | ||
@@ -41,0 +41,0 @@ }; |
@@ -79,4 +79,4 @@ import { RuntimeRenderer } from './css-runtime-renderer'; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < arguments.length; i++) { | ||
// eslint-disable-next-line prefer-rest-params | ||
const item = arguments[i]; | ||
@@ -83,0 +83,0 @@ |
@@ -26,6 +26,5 @@ import { NodeRenderer } from './types'; | ||
const render = (container: C, data: I[] = []) => { | ||
let node: O; | ||
if (data.length) { | ||
let node: O | undefined; | ||
let next: O | undefined = first; | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < data.length; i++) { | ||
@@ -43,3 +42,3 @@ node = renderNode(data[i]); | ||
if (nodeRenderer.hasKey(node!.nextElementSibling as O)) { | ||
container.removeChild(node!.nextElementSibling!); | ||
container.removeChild(node!.nextElementSibling); | ||
} else { | ||
@@ -46,0 +45,0 @@ break; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71566
1350