This project is archived and is in readonly mode.

#74 ✓invalid
joerg

Sortables doesn't send complete event

Reported by joerg | June 17th, 2009 @ 06:28 AM

-snippets- this.sorter = new Sortables([this.sortContainer], {

        snap: 0,
        handle: false,
        revert: false,
        constrain: false,
        clone: true,
        opacity: this.options.opacity,
        onComplete: this.dummy()
    });

dummy: function() {
var eles = this.sorterElements;
}


onComplete Event doesn't work with Sortables (more 1.2.2.2) If I try e.g. onSort instead of onComplete it workes like a charm.

;J

Comments and changes to this ticket

  • joerg

    joerg June 17th, 2009 @ 06:31 AM

    ... sorry, should have rtfm 4 formatting

    this.sorter = new Sortables([this.sortContainer], {

            snap: 0,
            handle: false,
            revert: false,
            constrain: false,
            clone: true,
            opacity: this.options.opacity,
            onComplete: this.dummy()
        });
    
    
    
    
    dummy: function() { var eles = this.sorterElements; }
  • Christoph Pojer

    Christoph Pojer June 25th, 2009 @ 09:27 AM

    • State changed from “new” to “invalid”

    onComplete works in the user tests. Please note that you are executing the function rather than passing it by reference. Your code should be "onComplete: this.dummy.bind(this)"

  • joerg

    joerg June 29th, 2009 @ 01:52 PM

    sigh thanks a lot, yes, correct. .oO should stop working in the morning.

Create your profile

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

The MooTools Extensions

People watching this ticket

Pages