You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/overview/embed.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,13 @@ External files are typically embedded in a structured way in the final program,
36
36
37
37
## Including statically
38
38
39
-
The user may embed files statically as either an UTF-8 encoded string, or `ByteArray`, rather than obtaining an URL.
39
+
The user may embed files statically as either an UTF-8 encoded String, or `ByteArray`, or CSS node depending on the framework, rather than obtaining an URL.
Copy file name to clipboardExpand all lines: src/overview/language-comparison/mxml.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,10 @@ The MXML language, as part of the Apache Flex framework, was used for describing
6
6
7
7
```sx
8
8
package zero {
9
+
import whack.ds.UIComponent;
9
10
import s = spark.components.*
10
11
11
-
public class HelloWorld extends whack.ds.UIComponent {
12
+
public class HelloWorld extends UIComponent {
12
13
public function HelloWorld() {
13
14
super()
14
15
final = (
@@ -72,7 +73,7 @@ Similarly to effects, callbacks that appear in E4X literals applied to the `whac
72
73
Declare State variables using the `State` meta-data:
73
74
74
75
```sx
75
-
public class Main extends whack.ds.UIComponent {
76
+
public class Main extends UIComponent {
76
77
[State]
77
78
var counter : uint = 0;
78
79
}
@@ -93,7 +94,7 @@ x = [...x, 10]
93
94
In the top-level of a Whack DS component, declare bindables by using the `Bindable` meta-data. Bindables have certain use-cases, such as persisting a value across renders, and extracting DOM elements from certain tags (in which case the `bind` attribute is used).
94
95
95
96
```sx
96
-
public class Main extends whack.ds.UIComponent {
97
+
public class Main extends UIComponent {
97
98
[Bindable]
98
99
var button : org.w3.web.Button? = null;
99
100
@@ -111,8 +112,8 @@ public class Main extends whack.ds.UIComponent {
111
112
Obtain inherited contexts by using a Context variable.
Copy file name to clipboardExpand all lines: src/serial.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,15 @@ This feature may only be used with classes that are annotatated with either the
6
6
7
7
Variants of an algebraic data type do not need to specify the `Serial` or `XS` meta-data.
8
8
9
-
The default behavior while deserializing into a class other than primitive types and certain global classes, unless defining a self-attached `fromJSON` or `fromXML` method, is roughly:
10
-
11
-
1. Create a new instance *o* of the class without evaluating the constructor
12
-
2. Let *fields* = Each *o*\[*k*\] field that is not configured with the `skip="true"` option.
13
-
3. Assign each field of *fields* to the respective data document field with the appropriate parsing of the field's data type, applying any configured rename.
14
-
4. Return *o*
9
+
The default behavior while deserializing into a class *c* other than primitive types and certain global classes, unless defining a self-attached `fromJSON` or `fromXML` method, is roughly:
10
+
11
+
1. If *c*<i>[[Constructor]]</i>.length == 0
12
+
1. Let o = new *c*()
13
+
2. Else
14
+
1. Let o = Create a new instance of *c* without evaluating the constructor
15
+
3. Let *fields* = Each *o*\[*k*\] field that is not configured with the `skip="true"` option.
16
+
4. Assign each field of *fields* to the respective data document field with the appropriate parsing of the field's data type, applying any configured rename.
17
+
5. Return *o*
15
18
16
19
Simple enums, including Flags enums, are serialized and deserialized in a different way from algebraic enums.
0 commit comments