Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 603... Línea 603...
603
            return aweight - bweight;
603
            return aweight - bweight;
604
        });
604
        });
Línea 605... Línea 605...
605
 
605
 
606
        // List of the published events to prevent redundancies.
606
        // List of the published events to prevent redundancies.
-
 
607
        let publishedEvents = new Set();
Línea 607... Línea 608...
607
        let publishedEvents = new Set();
608
        let transactionEvents = [];
Línea 608... Línea 609...
608
 
609
 
Línea 616... Línea 617...
616
                    state: this.state,
617
                    state: this.state,
617
                    element: event.eventData
618
                    element: event.eventData
618
                }, this.target);
619
                }, this.target);
Línea 619... Línea 620...
619
 
620
 
-
 
621
                publishedEvents.add(eventkey);
620
                publishedEvents.add(eventkey);
622
                transactionEvents.push(event);
621
            }
623
            }
Línea 622... Línea 624...
622
        });
624
        });
623
 
625
 
624
        // Dispatch a transaction end event.
626
        // Dispatch a transaction end event.
625
        this.dispatchEvent({
627
        this.dispatchEvent({
626
            action: 'transaction:end',
628
            action: 'transaction:end',
-
 
629
            state: this.state,
627
            state: this.state,
630
            element: null,
628
            element: null,
631
            changes: transactionEvents,
629
        }, this.target);
632
        }, this.target);
Línea 630... Línea 633...
630
    }
633
    }