Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DB59A200D2A for ; Sat, 28 Oct 2017 23:30:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D9D85160BE1; Sat, 28 Oct 2017 21:30:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2CF91160BDC for ; Sat, 28 Oct 2017 23:30:01 +0200 (CEST) Received: (qmail 46621 invoked by uid 500); 28 Oct 2017 21:30:00 -0000 Mailing-List: contact commits-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list commits@royale.apache.org Received: (qmail 46610 invoked by uid 99); 28 Oct 2017 21:30:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2017 21:30:00 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 7AC5381C05; Sat, 28 Oct 2017 21:29:57 +0000 (UTC) Date: Sat, 28 Oct 2017 21:29:57 +0000 To: "commits@royale.apache.org" Subject: [royale-asjs] branch develop updated: Fixes #39 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150922619765.5423.17210494044316625060@gitbox.apache.org> From: harbs@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: royale-asjs X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Oldrev: 1b1e4a29156787fa87179650a2dd3010ab06ce4d X-Git-Newrev: abba2d58281660ce7606c19a9631f1d6da4171a5 X-Git-Rev: abba2d58281660ce7606c19a9631f1d6da4171a5 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Sat, 28 Oct 2017 21:30:02 -0000 This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new abba2d5 Fixes #39 abba2d5 is described below commit abba2d58281660ce7606c19a9631f1d6da4171a5 Author: Harbs AuthorDate: Sun Oct 29 00:29:53 2017 +0300 Fixes #39 --- .../main/royale/org/apache/royale/html/beads/models/RangeModel.as | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as index c7c03a1..22c6abe 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as @@ -139,13 +139,15 @@ package org.apache.royale.html.beads.models _snapInterval = value; dispatchEvent(new Event("snapIntervalChange")); } - if(value < 1) + if(("" + value).indexOf(".") == -1) + { + _decimals = 0; + } + else { var str:String = "" + value; _decimals = str.substr(str.indexOf(".")+1).length; } - else - _decimals = 0; } private var _decimals:int; -- To stop receiving notification emails like this one, please contact ['"commits@royale.apache.org" '].