MCPcopy Index your code
hub / github.com/prototypejs/prototype / extendElementWith

Function extendElementWith

src/prototype/dom/dom.js:3213–3219  ·  view source on GitHub ↗
(element, methods)

Source from the content-addressed store, hash-verified

3211 checkElementPrototypeDeficiency('object');
3212
3213 function extendElementWith(element, methods) {
3214 for (var property in methods) {
3215 var value = methods[property];
3216 if (Object.isFunction(value) && !(property in element))
3217 element[property] = value.methodize();
3218 }
3219 }
3220
3221 // Keeps track of the UIDs of extended elements.
3222 var EXTENDED = {};

Callers 2

extendFunction · 0.85
extend_IE8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected