Skip to content

Commit

Permalink
Stray variable named dom
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Apr 6, 2015
1 parent 531fd37 commit e0b73a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/Reward.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function(reward, numberofcopies, code) {
return;
}
var rewardui = px.mkView(),
dom = px.dom.div([10, 40, ["Done", function() {
div = px.dom.div([10, 40, ["Done", function() {
if (chosenReward) {
if (code === undefined) {
sock.userExec("addbound", { c: etgutil.encodeCount(numberofcopies) + chosenReward });
Expand Down Expand Up @@ -52,8 +52,8 @@ module.exports = function(reward, numberofcopies, code) {
chosenReward = reward;
chosenRewardImage.texture = gfx.getArt(chosenReward);
}, "cardClick");
card.interactive = true;
rewardui.addChild(card);
px.setInteractive(card);
});

var cmds = {
Expand All @@ -64,5 +64,5 @@ module.exports = function(reward, numberofcopies, code) {
},
}

px.view({view:rewardui, dom:dom, cmds:cmds});
px.view({view:rewardui, dom:div, cmds:cmds});
}

0 comments on commit e0b73a6

Please sign in to comment.