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 76d0c24  (Temporary?) fix for XML methods
76d0c24 is described below

commit 76d0c24fbc6fde91bbb9e245874fd78db49eee96
Author: Harbs <[email protected]>
AuthorDate: Mon Feb 11 10:14:31 2019 +0200

    (Temporary?) fix for XML methods
---
 frameworks/projects/XML/src/main/royale/XML.as | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/frameworks/projects/XML/src/main/royale/XML.as 
b/frameworks/projects/XML/src/main/royale/XML.as
index fedf1be..0866ca5 100644
--- a/frameworks/projects/XML/src/main/royale/XML.as
+++ b/frameworks/projects/XML/src/main/royale/XML.as
@@ -2759,19 +2759,19 @@ Moved this logic (partially) into the other replace 
method
                }
                public function slice(beginSlice:Number, 
endSlice:*=undefined):String
                {
-                       return s().slice(beginSlice,endSlice);
+                       return s()["slice"](beginSlice,endSlice);
                }
                public function 
split(separator:*=undefined,limit:*=undefined):Array
                {
-                       return s().split(separator,limit);
+                       return s()["split"](separator,limit);
                }
                public function substr(start:Number, length:*=undefined):String
                {
-                       return s().substr(start,length);
+                       return s()["substr"](start,length);
                }
                public function substring(indexStart:Number, 
indexEnd:*=undefined):String
                {
-                       return s().substring(indexStart,indexEnd);
+                       return s()["substring"](indexStart,indexEnd);
                }
                public function toLocaleLowerCase():String
                {
@@ -2801,12 +2801,12 @@ Moved this logic (partially) into the other replace 
method
         */
                public function toExponential(fractionDigits:*=undefined):Number
                {
-                       return v().toExponential(fractionDigits) as Number;
+                       return v()["toExponential"](fractionDigits) as Number;
                }
         /**
          * @royaleignorecoercion Number
         */
-               public function toFixed(digits:*=undefined):Number
+               public function toFixed(digits:int=0):Number
                {
                        return v().toFixed(digits) as Number;
                }
@@ -2815,7 +2815,7 @@ Moved this logic (partially) into the other replace method
         */
                public function toPrecision(precision:*=undefined):Number
                {
-                       return v().toPrecision(precision) as Number;
+                       return v()["toPrecision"](precision) as Number;
                }
                private function s():String
                {

Reply via email to