diff --git a/lib/ComicBook.js b/lib/ComicBook.js index 4951afb..32738e2 100755 --- a/lib/ComicBook.js +++ b/lib/ComicBook.js @@ -54,7 +54,7 @@ function ComicBook(id, srcs, opts) { next: 78, previous: 80, control: { - image: 69 + color: 69 } } }; @@ -158,7 +158,7 @@ function ComicBook(id, srcs, opts) { * Image enhancements * TODO: split out brightness / contrast controls? */ - image: $(document.createElement("div")) + color: $(document.createElement("div")) .attr("id", "color") .addClass("control floating") .append("") @@ -217,7 +217,7 @@ function ComicBook(id, srcs, opts) { $(canvas) .after(this.getControl("navigation").left) .after(this.getControl("navigation").right) - .after(this.getControl("image").hide()); + .after(this.getControl("color").hide()); $("#desaturate").click(function(e){ if ($(this).is(":checked")) { @@ -606,8 +606,8 @@ function ComicBook(id, srcs, opts) { if (e.keyCode === options.keyboard.previous) { side = "left"; } if (e.keyCode === options.keyboard.next) { side = "right"; } - if (e.keyCode === options.keyboard.control.image) { - ComicBook.prototype.toggleControl("image"); + if (e.keyCode === options.keyboard.control.color) { + ComicBook.prototype.toggleControl("color"); } break; default: