mform-dateselector MDL-23829 Removed patch to fix YUI issue that was fixed in 3.2.0

This commit is contained in:
Sam Hemelryk
2010-09-23 05:30:22 +00:00
parent 1e6c1f7a3e
commit e18d7d2fe8
+1 -30
View File
@@ -43,36 +43,6 @@ YUI.add('moodle-form-dateselector', function(Y) {
}
});
/**
* Override the default inDoc method as it is broken in IE
*
* YUI Bug: http://yuilibrary.com/projects/yui3/ticket/2529157
* Example location: lib/yui/3.1.1/build/dom/dom-debug.js
*
* Moodle tracker issue to clean this up when required:
* http://tracker.moodle.org/browse/MDL-23829
*/
Y.DOM.inDoc = function(element, doc) {
// there may be multiple elements with the same ID
doc = doc || element['ownerDocument'];
var nodes = [],
ret = false,
i,
node;
if (!element.getAttribute('id')) {
element.setAttribute('id', Y.guid());
}
nodes = Y.DOM.allById(element.id, doc);
for (i = 0; node = nodes[i++];) { // check for a match
if (node === element) {
ret = true;
break;
}
}
return ret;
};
/**
* Calendar class
*
@@ -104,6 +74,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
node.on('blur', this.blur_event, this);
return;
}
node.on('focus', this.focus_event, this);
node.on('click', this.focus_event, this);
node.after('change', this.set_date_from_selects, this);
}, this);