CoffeeScript bug?

This commit is contained in:
Nicolas Stepien 2013-02-22 17:16:27 +01:00
parent cee2fe7f02
commit 093644b720
2 changed files with 4 additions and 2 deletions

View File

@ -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'))) {

View File

@ -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()