MDL-53667 tool_lp: Use event delegate for competency dialogue
authorFrederic Massart <fred@moodle.com>
Thu, 14 Apr 2016 09:47:02 +0000 (17:47 +0800)
committerFrederic Massart <fred@moodle.com>
Mon, 18 Apr 2016 06:52:48 +0000 (14:52 +0800)
commite912927d7b9745c85236ab79865908146c2ba663
tree4641fa04dda546c8a3fb903c58c47f5d40b2b0a2
parentd580b62fb3a26ee344e95c1cdd1538529d4867d4
MDL-53667 tool_lp: Use event delegate for competency dialogue

This was causing dramatical performance issues when the module
was loaded hundreds of times on the same page, causing each instance
to detach and attach a new event listener.
admin/tool/lp/amd/build/competencydialogue.min.js
admin/tool/lp/amd/build/course_competency_settings.min.js
admin/tool/lp/amd/src/competencydialogue.js
admin/tool/lp/templates/competency_path.mustache
admin/tool/lp/templates/related_competencies.mustache
admin/tool/lp/templates/user_evidence_page.mustache
admin/tool/lpmigrate/templates/migrate_frameworks_results.mustache
report/competency/templates/report.mustache