-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IIFE breaks ability to specify execution context
- Loading branch information
Showing
1 changed file
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8cdbee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dominykas, see this and the following commit -- opts.context was totally broken, and fixing it required removing the IIFE. Happy to work with you to come up with a better way to ensure good minification.
8cdbee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But there were no tests failing :(
The IIFE itself can be bound like
(function () {}.bind(something))()
:D I'll have a look after I'm back from holidays.8cdbee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was documented functionality, but there were no tests for it. I know that sucks. Good call on binding the IIFE. Shoot me a PR, if I don't get to it first.