From 71c08a8109b65360be693476239220e1f3781720 Mon Sep 17 00:00:00 2001 From: Christophe VERGNE Date: Mon, 21 Sep 2015 15:45:55 +0200 Subject: [PATCH] Fix forgotten var in optimization from a previous version --- YAAH.js | 12 ++++++------ bower.json | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/YAAH.js b/YAAH.js index 5cab760..f0a0ca6 100644 --- a/YAAH.js +++ b/YAAH.js @@ -1,5 +1,5 @@ // ========================================================================= -// YAAH - Yet Another AJAX Helper - v0.4.4 +// YAAH - Yet Another AJAX Helper - v0.4.7 // ========================================================================= // Needs jQuery and Modernizr @@ -184,24 +184,24 @@ $(target).children().hide(); $(target).prepend(loader); } else { - $(item).children().hide(); - $(item).prepend(loader); + $item.children().hide(); + $item.prepend(loader); } return $(this); break; case 'bottom': - target ? $(target).append(loader) : $(item).append(loader); + target ? $(target).append(loader) : $item.append(loader); return $(this); break; case 'remove': - target ? $(target).remove() : $(item).remove(); + target ? $(target).remove() : $item.remove(); return $(this); break; case 'none': - target ? $(target).after(loader) : $(item).after(loader); + target ? $(target).after(loader) : $item.after(loader); return $(this); break; } diff --git a/bower.json b/bower.json index 8d17f36..478fb52 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "yaah-js", - "version": "0.4.6", + "version": "0.4.7", "homepage": "https://github.com/les-argonautes/yaah", "authors": [ { "name": "adriench"}, diff --git a/package.json b/package.json index db076b4..8e85804 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yaah-js", - "version": "0.4.6", + "version": "0.4.7", "dependencies": { "jquery": ">=2.1.1", "modernizr": ">=2.8.3"