hi Michael,
You can pretty much disregard any of these little inconsistencies when working with Web IDE.. the whole thing is whacked at least in some cases... I usually do, most of all when I don't agree with what's reported there.
Case you're working with require and module injection you can use something like this to make strict mode (and the lack of the window global) happy:
define(
function() {
return window;
}
); -- and lets say you call this window.js
In your Controller you can just require module 'window' and this will give you the 'window' object now as a dependency.
In some other cases like what Dennis just mentioned, you don't have a qualified dependency on $ but it's visible and does not generate you a warning or error.. which is crazy, someone defined a hard dependency to jQuery but not to window. As he also mentioned, since you're allowed to use jQuery you could try to access the window from there, but IMO it's a waste when you can just use the normal Web API for that... not too sure if this is valid thou, because once again, you are utilizing a variable not defined in strict mode.
UI5 itself does provide a way to listen in an event handler when a Control has been resized, meaning instead of you listening to the window and then finding out the Control, compare values and evaluate if that Control has resized in your own handler you could use the UI5 "ResizeHandler" - https://github.com/SAP/openui5/blob/master/src/sap.ui.core/test/sap/ui/core/qunit/ResizeHandler.qunit.html
Hope it helps,
Dan.