User:Mike Dillon/Scripts/easydom.js: Difference between revisions

Content deleted Content added
m comment
pass "elem" as first argument to attribute callbacks
Line 35:
for (var attrName in attrs) {
var attrValue = attrs[attrName];
// Invoke functionsfunction callbacks and use their result as the value
if (typeof attrValue == functionType) {
attrValue = attrValue(elem);
}
// Skip null values