From 78f6fad57011f66d057236088ec1e7e69a5ce58a Mon Sep 17 00:00:00 2001 From: Juriy Zaytsev Date: Tue, 19 May 2009 16:27:09 -0400 Subject: [PATCH] Simplify snippet of `_insertionTranslations.tags` extension. --- src/dom/dom.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index ae92058..47d5253 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -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) {