diff --git a/pixastic.jquery.js b/pixastic.jquery.js index 4acd03e..3376b51 100755 --- a/pixastic.jquery.js +++ b/pixastic.jquery.js @@ -12,6 +12,11 @@ if (typeof jQuery != "undefined" && jQuery && jQuery.fn) { if (this.tagName.toLowerCase() == "img" && !this.complete) { return; } + if (action === "revert") { + var res = Pixastic.revert(this); + } else { + var res = Pixastic.process(this, action, options); + } var res = Pixastic.process(this, action, options); if (res) { newElements.push(res);