summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot/Content/js/index.js
diff options
context:
space:
mode:
authorDan Volchek <volchek2@illinois.edu>2018-04-23 02:01:14 -0500
committerDan Volchek <volchek2@illinois.edu>2018-04-23 02:01:14 -0500
commit371d7fa05317f107f7b97a7b5db93e176039418d (patch)
treeb2fba8b3d81495aaad7b9a2e104c270c0a514353 /src/SMAPI.Web/wwwroot/Content/js/index.js
parent82f418a38baeb44f68601708ebbd3c4af03ef6da (diff)
downloadSMAPI-371d7fa05317f107f7b97a7b5db93e176039418d.tar.gz
SMAPI-371d7fa05317f107f7b97a7b5db93e176039418d.tar.bz2
SMAPI-371d7fa05317f107f7b97a7b5db93e176039418d.zip
use implicit iteration instead
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/js/index.js')
-rw-r--r--src/SMAPI.Web/wwwroot/Content/js/index.js10
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");
});
});