Skip to content

refactor: Modify this pointer so that it is not empty.#3719

Merged
matthew-dean merged 2 commits intoless:masterfrom
lumburr:refactor
Aug 20, 2022
Merged

refactor: Modify this pointer so that it is not empty.#3719
matthew-dean merged 2 commits intoless:masterfrom
lumburr:refactor

Conversation

@lumburr
Copy link
Copy Markdown
Contributor

@lumburr lumburr commented Apr 25, 2022

What: get correct this

Why:
this === undefined

args = order.map(function (a) { return a.toCSS(this.context); }).join(this.context.compress ? ',' : ', ');

image

How:

Checklist:

  • Documentation N/A
  • Added/updated unit tests N/A
  • Code complete

@iChenLei
Copy link
Copy Markdown
Member

Can you add special unit tests for this PR ? Thanks

@lumburr
Copy link
Copy Markdown
Contributor Author

lumburr commented Apr 26, 2022

@iChenLei I've added some special test cases.:sweat_smile:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants