Skip to content

Commit

Permalink
Simplify snippet of _insertionTranslations.tags extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juriy Zaytsev authored and savetheclocktower committed Jun 5, 2009
1 parent b2492ae commit 78f6fad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/dom/dom.js
Expand Up @@ -1609,12 +1609,13 @@ Element._insertionTranslations = {
};

(function() {
Object.extend(this.tags, {
THEAD: this.tags.TBODY,
TFOOT: this.tags.TBODY,
TH: this.tags.TD
var tags = Element._insertionTranslations.tags;
Object.extend(tags, {
THEAD: tags.TBODY,
TFOOT: tags.TBODY,
TH: tags.TD
});
}).call(Element._insertionTranslations);
})();

Element.Methods.Simulated = {
hasAttribute: function(element, attribute) {
Expand Down

0 comments on commit 78f6fad

Please sign in to comment.