From: Alan Knowles Date: Tue, 13 Dec 2016 01:55:29 +0000 (+0800) Subject: ux/FlipCounter.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fb1d2354d5efe5a48b8ba645cfcf3a0cbc763d64 ux/FlipCounter.js --- diff --git a/ux/FlipCounter.js b/ux/FlipCounter.js index fc6fe18bf7..b4e35743c7 100644 --- a/ux/FlipCounter.js +++ b/ux/FlipCounter.js @@ -230,12 +230,12 @@ Roo.extend(Roo.ux.FlipCounter.Digit, Roo.bootstrap.Component, { - this.topFrontDiv = this.el.select('.flipper_top_front',true); - this.bottomFrontDiv = this.el.select('.flipper_bottom_front',true); - this.topNumBack = this.el.select('.flipper_top_back span',true); - this.topNumFront = this.el.select('.flipper_top_front span',true); - this.bottomNumBack = this.el.select('.flipper_bottom_back span',true); - this.bottomNumFront = this.el.select('.flipper_bottom_front span',true); + this.topFrontDiv = this.el.select('.flipper_top_front',true).first(); + this.bottomFrontDiv = this.el.select('.flipper_bottom_front',true).first(); + this.topNumBack = this.el.select('.flipper_top_back span',true).first(); + this.topNumFront = this.el.select('.flipper_top_front span',true).first(); + this.bottomNumBack = this.el.select('.flipper_bottom_back span',true).first(); + this.bottomNumFront = this.el.select('.flipper_bottom_front span',true).first(); this.targetNum = this.currentNumber; this.currentNum = this.currentNumber;