Skip to content

Commit

Permalink
Fix uncaught type error on clicking lexical this
Browse files Browse the repository at this point in the history
  • Loading branch information
ryusuke-homma-unifa committed Jun 3, 2017
1 parent 4b12eb4 commit fdaf2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
$(".showcase").css("display", "none")
$(".showcase:first").css("display", "block")
$("li.subtitle:first").addClass("selected")
$(".nav a").click(function (ev) {
var id = $(ev.target).attr("href").replace(/^#/, "")
$(".nav a").click(function () {
var id = $(this).attr("href").replace(/^#/, "")
$(".showcase").css("display", "none")
$(".showcase_" + id).css("display", "block")
$("li.subtitle").removeClass("selected")
Expand Down

0 comments on commit fdaf2b9

Please sign in to comment.