Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Allow custom :output-wrapper function
Key details
Description
In advanced optimization, `goog.global` is being assigned the value of `this` which will lose context when output-wrapper is used. To fix this, the output-wrapper function should be set to something like `'(function(){%output%}).call(window)'` so that `this` is `window`.
In advanced optimization, `goog.global` is being assigned the value of `this` which will lose context when output-wrapper is used. To fix this, the output-wrapper function should be set to something like `'(function(){%output%}).call(window)'` so that `this` is `window`.