Ignore:
Timestamp:
2021-12-13T13:36:30+13:00 (2 years ago)
Author:
cstephen
Message:

Use arrow function shorthand to capture scope, removing need for const that = this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/ocr/src/components/Snackbar.vue

    r35785 r35805  
    4040        setContent(content, timeout = 3000) {
    4141            this.content = content;
    42             const that = this;
    4342
    44             setTimeout(function() {
    45                 that.content = null;
     43            setTimeout(() => {
     44                this.content = null;
    4645            }, timeout);
    4746        }
Note: See TracChangeset for help on using the changeset viewer.