CoffeeScript bug?
This commit is contained in:
parent
cee2fe7f02
commit
093644b720
@ -6056,7 +6056,7 @@
|
||||
captcha: {
|
||||
init: function() {
|
||||
var _this = this;
|
||||
if (__indexOf.call(d.cookie, 'pass_enabled=') >= 0) {
|
||||
if (d.cookie.indexOf('pass_enabled=1;') >= 0) {
|
||||
return;
|
||||
}
|
||||
if (!(this.isEnabled = !!$.id('captchaFormPart'))) {
|
||||
|
||||
@ -456,7 +456,9 @@ QR =
|
||||
|
||||
captcha:
|
||||
init: ->
|
||||
return if 'pass_enabled=' in d.cookie
|
||||
# XXX CoffeeScrit's indexOf doesn't wanna work here ???
|
||||
# return if 'pass_enabled=1;' in d.cookie
|
||||
return if d.cookie.indexOf('pass_enabled=1;') >= 0
|
||||
return unless @isEnabled = !!$.id 'captchaFormPart'
|
||||
if $.id 'recaptcha_challenge_field_holder'
|
||||
@ready()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user