derickbailey/backbone.modelbinding — Issue #73: true model property should set display to empty string, not block
Author: enunez
Created: 2012-02-27 20:32:44+00:00
State: open

In your documentation, you write: "When the model's property is set to true, the HTML element's display css will be set to block." This is not a particularly good implementation in that it forces inline elements (or elements of non-block display type) to be rendered as block, breaking page layout in many cases. Instead, you should set the display style to an empty string which will essentially remove the display so it reverts back to whatever it was previously by default or as set by the CSS.

el.style.display = '' instead of el.style.display = 'block'