This project is archived and is in readonly mode.

#1259 ✓wontfix
Willis Blackburn

options parameter to check ignored

Reported by Willis Blackburn | July 25th, 2011 @ 03:54 AM

I came across this in the MooTools 1.3.2 code. It's part of the Request class.

check: function(){
    if (!this.running) return true;
    switch (this.options.link){
        case 'cancel': this.cancel(); return true;
        case 'chain': this.chain(this.caller.pass(arguments, this)); return false;
    }
    return false;
},

send: function(options){
    if (!this.check(options)) return this;

The send function passes options to check, but check doesn't take any parameters and looks at "this.options" instead.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages