marko-js-archive / marko-widgets

[LEGACY] Module to support binding of behavior to rendered UI components rendered on the server or client
http://v3.markojs.com/docs/marko-widgets/
MIT License
141 stars 40 forks source link

Allow for w-preserve-attrs to enable preservation of attributes #121

Closed 1N50MN14 closed 8 years ago

1N50MN14 commented 8 years ago

w-preserve-attrs="style,class"

Because Marko Widgets doesn't maintain a separate virtual DOM it will reset manual changes to element attributes on rerender() . It should be possible to specify attributes for Marko to ignore. This is mostly the case with class and style attributes where external animation / tweening engines such as Velocity.js or GSAP are often used whereas we still wish to rely on setState() while still maintaining element styles as set manually outside Marko.

patrick-steele-idem commented 8 years ago

New version published: marko-widgets@5.3.0