I've been looking for the same thing. I thought I saw it one time, so in my planning I didn't look again, but I guess it doesn't exist :(
The polling of current screen width to a global variable that stored the last screen size is working for me accept for when the window is maximized, then it freaks out :(
of course, it could just be that my brain has shut down for the day and I'm missing something. I'll give it another go tomorrow.