Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Make Element.Layout#toCSS return camelized property names, as expec…
Browse files Browse the repository at this point in the history
…ted by `Element.setStyle`. [#1021 state:resolved]
  • Loading branch information
savetheclocktower committed Apr 18, 2010
1 parent c0e20dc commit 2fd5c9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,3 +1,5 @@
Make `Element.Layout#toCSS` return camelized property names, as expected by `Element.setStyle`. [#1021 state:resolved] (njakobsen, Andrew Dupont)

*1.7_rc1* (April 1, 2010)

* Add an `Event.Handler` class, plus `Event.on` and `Element#on` methods, for simplified event delegation. (sam, Tobie Langel, Andrew Dupont)
Expand Down
4 changes: 2 additions & 2 deletions src/dom/layout.js
Expand Up @@ -94,8 +94,8 @@
// Converts the layout hash property names back to the CSS equivalents.
// For now, only the border properties differ.
function cssNameFor(key) {
if (key.includes('border')) return key + '-width';
return key;
if (key.includes('border')) key = key + '-width';
return key.camelize();
}

/**
Expand Down

0 comments on commit 2fd5c9b

Please sign in to comment.