rmq icon indicating copy to clipboard operation
rmq copied to clipboard

Warn user if they are applying a style to a view that was never: build, create, or append

Open twerth opened this issue 9 years ago • 4 comments

twerth avatar May 08 '15 03:05 twerth

@twerth do you mean apply_style(:blah) should show a warning? Or something else? I could spend some time implementing this, but I want to be sure what's the specification!

squidpunch avatar Jun 20 '15 13:06 squidpunch

yes, if the view isn't built, meaning build, create, or append. Because if it's not, it may not have the correct stylesheet, etc. This causes problems for some people.

twerth avatar Jun 20 '15 15:06 twerth

:+1:

GantMan avatar Jun 20 '15 16:06 GantMan

hrmm interesting, I often build with a style, then based on some activity on the view apply a new style (which wouldnt be built). Wonder if its worth allowing a setting to quiet this warning if you dont want to see it - because I could see having this warning pop up a few places in my app because of how I am currently using it (but correctly....or at least in my opinion its correctly...)

squidpunch avatar Jun 21 '15 16:06 squidpunch