From ed8335da109b7bb9eab5ddd33669a8f795a8dcf4 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 18 May 2016 08:58:37 -0500 Subject: [PATCH] style(picker): update temp fix warning --- ionic/components/picker/picker.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ionic/components/picker/picker.ts b/ionic/components/picker/picker.ts index 4bad1d982cd..bbf2c7e9743 100644 --- a/ionic/components/picker/picker.ts +++ b/ionic/components/picker/picker.ts @@ -343,11 +343,12 @@ class PickerColumnCmp { this.col.selectedIndex = Math.max(Math.abs(Math.round(y / this.optHeight)), 0); let colElements = this.colEle.nativeElement.querySelectorAll('.picker-opt'); - if (colElements.length != this.col.options.length) { - // TODO: it would be great to find the root of the problem - // and implement a good fix, but at least, this prevents an expection - console.error("colElements.length!=this.col.options.length"); + if (colElements.length !== this.col.options.length) { + // TODO: temporary until [style.transform] is fixed within ng2 + console.warn('colElements.length!=this.col.options.length'); + return; } + for (var i = 0; i < colElements.length; i++) { var ele: HTMLElement = colElements[i]; var opt = this.col.options[i];