From 7cb035d9e88f695cd38cb17353309983bbc28a4f Mon Sep 17 00:00:00 2001 From: Thomas Burleson Date: Mon, 23 Nov 2015 18:13:10 -0600 Subject: [PATCH] fix(layouts): do NOT remove layout attributes after className generation --- src/core/services/layout/layout.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/core/services/layout/layout.js b/src/core/services/layout/layout.js index 94522a551ac..1cbe7f2049a 100644 --- a/src/core/services/layout/layout.js +++ b/src/core/services/layout/layout.js @@ -23,12 +23,6 @@ */ enabled: true, - /** - * After translation to classname equivalents, remove the - * original Layout attribute - */ - removeAttributes : true, - /** * List of mediaQuery breakpoints and associated suffixes * @@ -263,11 +257,6 @@ updateFn(getNormalizedAttrValue(className, attrs, "")); scope.$on("$destroy", function() { unwatch() }); - - - if (config.removeAttributes && (element[0].nodeName != "#comment")) { - element.removeAttr(className); - } } } @@ -309,11 +298,6 @@ */ function translateToCssClass(scope, element) { element.addClass(className); - - if (config.removeAttributes) { - // After link-phase, remove deprecated layout attribute selector - element.removeAttr(className); - } } }