diff --git a/4chan_x.user.js b/4chan_x.user.js index 3d5f79048..8dbd699b0 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan x -// @version 2.21.0 +// @version 2.21.1 // @namespace aeosynth // @description Adds various features. // @copyright 2009-2011 James Campos @@ -15,7 +15,7 @@ * * Copyright (c) 2009-2011 James Campos * http://mayhemydg.github.com/4chan-x/ - * 4chan x 2.21.0 + * 4chan x 2.21.1 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -211,7 +211,7 @@ NAMESPACE = '4chan_x.'; - VERSION = '2.21.0'; + VERSION = '2.21.1'; SECOND = 1000; @@ -1753,7 +1753,7 @@ el = _ref[_i]; el.tabIndex = 1; } - return $.bind($('#recaptcha_response_field'), 'keydown', Recaptcha.listener); + return $.on($('#recaptcha_response_field'), 'keydown', Recaptcha.listener); }, listener: function(e) { if (e.keyCode === 8 && this.value === '') return Recaptcha.reload(); @@ -2976,7 +2976,7 @@ if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) { Recaptcha.init(); if (g.REPLY && conf['Auto Watch Reply'] && conf['Thread Watcher']) { - $.bind(form, 'submit', function() { + $.on(form, 'submit', function() { if ($('img.favicon').src === Favicon.empty) { return watcher.watch(null, g.THREAD_ID); } diff --git a/Cakefile b/Cakefile index 95a9112c1..54b0e5e7c 100644 --- a/Cakefile +++ b/Cakefile @@ -2,7 +2,7 @@ {exec} = require 'child_process' fs = require 'fs' -VERSION = '2.21.0' +VERSION = '2.21.1' HEADER = """ // ==UserScript== diff --git a/changelog b/changelog index 2ba9d2244..7369019ff 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,9 @@ master +2.21.1 +- mayhem + fix Opera + 2.21.0 - mayhem initiate 4chan X earlier diff --git a/latest.js b/latest.js index 129ebdc29..d69b0c808 100644 --- a/latest.js +++ b/latest.js @@ -1 +1 @@ -postMessage({version:'2.21.0'},'*'); +postMessage({version:'2.21.1'},'*'); diff --git a/script.coffee b/script.coffee index 7f2a580cd..1c9cd7a59 100644 --- a/script.coffee +++ b/script.coffee @@ -122,7 +122,7 @@ conf = {} ) null, config NAMESPACE = '4chan_x.' -VERSION = '2.21.0' +VERSION = '2.21.1' SECOND = 1000 MINUTE = 60*SECOND HOUR = 60*MINUTE @@ -1372,7 +1372,7 @@ Recaptcha = #hack to tab from comment straight to recaptcha for el in $$ '#recaptcha_table a' el.tabIndex = 1 - $.bind $('#recaptcha_response_field'), 'keydown', Recaptcha.listener + $.on $('#recaptcha_response_field'), 'keydown', Recaptcha.listener listener: (e) -> if e.keyCode is 8 and @value is '' # backspace to reload Recaptcha.reload() @@ -2328,7 +2328,7 @@ Main = if (form = $ 'form[name=post]') and (canPost = !!$ '#recaptcha_response_field') Recaptcha.init() if g.REPLY and conf['Auto Watch Reply'] and conf['Thread Watcher'] - $.bind form, 'submit', -> if $('img.favicon').src is Favicon.empty + $.on form, 'submit', -> if $('img.favicon').src is Favicon.empty watcher.watch null, g.THREAD_ID #major features