Skip to content

Commit

Permalink
Using established id var instead of finding (potentially undefined) a…
Browse files Browse the repository at this point in the history
…ttribute again.
  • Loading branch information
nathancolgate committed Apr 25, 2012
1 parent ce4724c commit e4cfe12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.fn.gantt.js
Expand Up @@ -49,7 +49,7 @@
id = id ? id : "";
var si = id.indexOf("-") + 1;
cd = cd.getFullYear() + "-" + cd.getDayForWeek().getWeekOfYear();
var ed = $(a).attr("id").substring(si, $(a).attr("id").length);
var ed = id.substring(si, id.length);
return cd === ed;
}
});
Expand All @@ -61,7 +61,7 @@
var id = $(a).attr("id");
id = id ? id : "";
var si = id.indexOf("-") + 1;
var ed = $(a).attr("id").substring(si, $(a).attr("id").length);
var ed = id.substring(si, id.length);
return cd === ed;
}
});
Expand Down

0 comments on commit e4cfe12

Please sign in to comment.