Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(layouts): do NOT remove layout attributes after className generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed Nov 24, 2015
1 parent 7a87dda commit 7cb035d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/core/services/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -263,11 +257,6 @@

updateFn(getNormalizedAttrValue(className, attrs, ""));
scope.$on("$destroy", function() { unwatch() });


if (config.removeAttributes && (element[0].nodeName != "#comment")) {
element.removeAttr(className);
}
}
}

Expand Down Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 7cb035d

Please sign in to comment.