rooibos-roku 4.5.3 → 4.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -602,7 +602,6 @@ namespace rooibos.Common
|
|
|
602
602
|
return t
|
|
603
603
|
end if
|
|
604
604
|
end function
|
|
605
|
-
|
|
606
605
|
' /**
|
|
607
606
|
' * @memberof module:CommonUtils
|
|
608
607
|
' * @name EqValues
|
|
@@ -615,33 +614,26 @@ namespace rooibos.Common
|
|
|
615
614
|
' */
|
|
616
615
|
function eqValues(Value1, Value2) as dynamic
|
|
617
616
|
' Workaraund for bug with string boxing, and box everything else
|
|
618
|
-
val1Type =
|
|
619
|
-
val2Type =
|
|
620
|
-
if val1Type =
|
|
617
|
+
val1Type = Rooibos.Common.getSafeType(Value1)
|
|
618
|
+
val2Type = Rooibos.Common.getSafeType(Value2)
|
|
619
|
+
if val1Type = invalid or val2Type = invalid
|
|
621
620
|
? "ERROR!!!! - undefined value passed"
|
|
622
621
|
return false
|
|
623
622
|
end if
|
|
624
623
|
|
|
625
|
-
v1IsString = val1Type = "roString" or val1Type = "String"
|
|
626
|
-
v2IsString = val2Type = "roString" or val2Type = "String"
|
|
627
|
-
'update types after boxing
|
|
628
|
-
val1Type = type(Value1)
|
|
629
|
-
val2Type = type(Value2)
|
|
630
|
-
|
|
631
|
-
|
|
632
624
|
'Upcast int to float, if other is float
|
|
633
|
-
if val1Type = "
|
|
625
|
+
if val1Type = "Float" and val2Type = "Integer"
|
|
634
626
|
Value2 = cdbl(Value2)
|
|
635
|
-
else if val2Type = "
|
|
627
|
+
else if val2Type = "Float" and val1Type = "Integer"
|
|
636
628
|
Value1 = cdbl(Value1)
|
|
637
629
|
end if
|
|
638
630
|
|
|
639
|
-
if val1Type <> val2Type
|
|
631
|
+
if val1Type <> val2Type
|
|
640
632
|
return false
|
|
641
633
|
else
|
|
642
634
|
valtype = val1Type
|
|
643
635
|
|
|
644
|
-
if valtype = "
|
|
636
|
+
if valtype = "List"
|
|
645
637
|
return Rooibos.Common.eqArray(Value1, Value2)
|
|
646
638
|
else if valtype = "roAssociativeArray"
|
|
647
639
|
return Rooibos.Common.eqAssocArray(Value1, Value2)
|