Skip to content

Commit

Permalink
Fixing dialogs on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
onsubmit committed Mar 1, 2015
1 parent f9aded8 commit 77bf781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ function Game(args)
{
game.getItemTooltipIcon().attr("src", e.data.item.image);
game.getItemTooltipName().text(e.data.item.name);
game.getItemMenuRecipe().off("click").on("click", { item: e.data.item }, function(e2)
game.getItemMenuRecipe().off("click touchend").on("click touchend", { item: e.data.item }, function(e2)
{
game.getCraftingDialog().dialog("option", "title", "Recipe");
game.getCraftingDialog().dialog("option", "buttons",
Expand Down Expand Up @@ -594,7 +594,7 @@ function Game(args)
game.drawCraftingDialog(e2.data.item);
});

game.getItemMenuUses().off("click").on("click", { item: e.data.item }, function(e3)
game.getItemMenuUses().off("click touchend").on("click touchend", { item: e.data.item }, function(e3)
{
game.getCraftingDialog().dialog("option", "title", "Uses");
if (e3.data.item.usedBy.length > 1)
Expand Down

0 comments on commit 77bf781

Please sign in to comment.