style(item): fixes all gulp validate errors

This commit is contained in:
Manu Mtz.-Almeida
2016-06-24 18:53:07 +02:00
parent 3c267cebcb
commit f01a440314
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@ export class Reorder {
this.setCssClass('reorder-active', false); this.setCssClass('reorder-active', false);
let transform = CSS.transform; let transform = CSS.transform;
for (let i = 0; i < len; i++) { for (let i = 0; i < len; i++) {
children[i].style[transform] = ''; (<any>children[i]).style[transform] = '';
} }
this._lastToIndex = -1; this._lastToIndex = -1;
} }
@ -136,7 +136,7 @@ export class Reorder {
if (toIndex >= lastToIndex) { if (toIndex >= lastToIndex) {
for (var i = lastToIndex; i <= toIndex; i++) { for (var i = lastToIndex; i <= toIndex; i++) {
if (i !== fromIndex) { if (i !== fromIndex) {
children[i].style[transform] = (i > fromIndex) (<any>children[i]).style[transform] = (i > fromIndex)
? `translateY(${-itemHeight}px)` : ''; ? `translateY(${-itemHeight}px)` : '';
} }
} }
@ -145,7 +145,7 @@ export class Reorder {
if (toIndex <= lastToIndex) { if (toIndex <= lastToIndex) {
for (var i = toIndex; i <= lastToIndex; i++) { for (var i = toIndex; i <= lastToIndex; i++) {
if (i !== fromIndex) { if (i !== fromIndex) {
children[i].style[transform] = (i < fromIndex) (<any>children[i]).style[transform] = (i < fromIndex)
? `translateY(${itemHeight}px)` : ''; ? `translateY(${itemHeight}px)` : '';
} }
} }