diff options
author | Dan Volchek <volchek2@illinois.edu> | 2018-04-23 02:01:14 -0500 |
---|---|---|
committer | Dan Volchek <volchek2@illinois.edu> | 2018-04-23 02:01:14 -0500 |
commit | 371d7fa05317f107f7b97a7b5db93e176039418d (patch) | |
tree | b2fba8b3d81495aaad7b9a2e104c270c0a514353 /src/SMAPI.Web/wwwroot | |
parent | 82f418a38baeb44f68601708ebbd3c4af03ef6da (diff) | |
download | SMAPI-371d7fa05317f107f7b97a7b5db93e176039418d.tar.gz SMAPI-371d7fa05317f107f7b97a7b5db93e176039418d.tar.bz2 SMAPI-371d7fa05317f107f7b97a7b5db93e176039418d.zip |
use implicit iteration instead
Diffstat (limited to 'src/SMAPI.Web/wwwroot')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/index.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/index.js b/src/SMAPI.Web/wwwroot/Content/js/index.js index 46f78fbe..ac05df05 100644 --- a/src/SMAPI.Web/wwwroot/Content/js/index.js +++ b/src/SMAPI.Web/wwwroot/Content/js/index.js @@ -1,10 +1,8 @@ $(document).ready(function () { var pufferchick = $("#pufferchick"); - $(".download").each(function (index, element) { - $(element).hover(function () { - pufferchick.attr("src", "Content/images/pufferchick-cool.png"); - }, function () { - pufferchick.attr("src", "favicon.ico"); - }); + $(".download").hover(function () { + pufferchick.attr("src", "Content/images/pufferchick-cool.png"); + }, function () { + pufferchick.attr("src", "favicon.ico"); }); }); |