We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a6757a + fd1debe commit aa429dbCopy full SHA for aa429db
Examples/Content/Scripts/2048/game/actuator.js
@@ -8,9 +8,12 @@
8
9
var widget = instantiate(design)
10
11
- var score_attrs = widget.find('score').set_attrs
12
- var best_attrs = widget.find('best').set_attrs
13
- var message_attrs = widget.find('message').set_attrs
+ var score_prop = widget.find('score');
+ var score_attrs = score_prop.set_attrs.bind(score_prop);
+ var best_prop = widget.find('best');
14
+ var best_attrs = best_prop.set_attrs.bind(best_prop);
15
+ var message_prop = widget.find('message');
16
+ var message_attrs = message_prop.set_attrs.bind(message_prop);
17
18
score_attrs({ Text: 0 })
19
best_attrs({ Text: 0 })
0 commit comments