Skip to content

Conversation

@adumesny
Copy link
Member

Description

  • changed all == to ===, != to !== (no unwanted side affect)
  • changed (typeof foo !== 'undefined') to (foo !== undefined)
  • shorten the test cases for all but first 2 instances than check for global vars
  • in some browser this can be a lot faster too (80% on Edge)
    https://jsperf.com/type-of-undefined-vs-undefined/30
  • shorter notation. in some case just if (foo) as we should check for null as well
    (if there are not 0 number cases)
  • fix demos to have regular buttons - latest bootstrap make them flat (no border)

Checklist

  • All tests passing (yarn test)
    ran all tests and demos. no issues.

Alain Dumesny added 3 commits November 14, 2019 08:42
* changed all == to ===, != to !== (no unwanted side affect)
* shorten the test cases for all but first 2 instances than check for global vars
* in some browser this can be a lot faster too (80% on Edge)
https://jsperf.com/type-of-undefined-vs-undefined/30
* shorter notation. in some case just if (foo) as we should check for null as well
(if there are not 0 number cases)

ran all tests and demos. no issues.
latest bootstrap maks them flat (no border)
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 65.513% when pulling af5cb5f on adumesny:develop into c37513d on gridstack:develop.

@radiolips radiolips merged commit 1c3f50b into gridstack:develop Nov 17, 2019
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