diff --git a/question/type/ddimageortext/yui/dd/dd.js b/question/type/ddimageortext/yui/dd/dd.js index fcaf6bb75bf..8d6125400d0 100644 --- a/question/type/ddimageortext/yui/dd/dd.js +++ b/question/type/ddimageortext/yui/dd/dd.js @@ -1,8 +1,12 @@ + YUI.add('moodle-qtype_ddimagetoimage-dd', function(Y) { var DDIMAGETOIMAGEDDNAME = 'ddimagetoimage_dd'; var DDIMAGETOIMAGE_DD = function() { DDIMAGETOIMAGE_DD.superclass.constructor.apply(this, arguments); } + /** + * This is the base class for the question rendering and question editing form code. + */ Y.extend(DDIMAGETOIMAGE_DD, Y.Base, { doc : null, polltimer : null, @@ -213,6 +217,9 @@ YUI.add('moodle-qtype_ddimagetoimage-dd', function(Y) { var DDIMAGETOIMAGE_QUESTION = function() { DDIMAGETOIMAGE_QUESTION.superclass.constructor.apply(this, arguments); }; + /** + * This is the code for question rendering. + */ Y.extend(DDIMAGETOIMAGE_QUESTION, M.qtype_ddimagetoimage.dd_base_class, { initializer : function(params) { this.doc = this.doc_structure(this); diff --git a/question/type/ddimageortext/yui/form/form.js b/question/type/ddimageortext/yui/form/form.js index 8d7d4064cdb..2189d75bfe9 100644 --- a/question/type/ddimageortext/yui/form/form.js +++ b/question/type/ddimageortext/yui/form/form.js @@ -1,3 +1,6 @@ +/** + * This is the question editing form code. + */ YUI.add('moodle-qtype_ddimagetoimage-form', function(Y) { var DDIMAGETOIMAGEFORMNAME = 'ddimagetoimage_form'; var DDIMAGETOIMAGE_FORM = function() {