NullVoxPopuli/aeonvera-ui

View on GitHub
app/components/handle-payment.js

Summary

Maintainability
A
0 mins
Test Coverage

Detected use of .observes and .property on functions
Open

Severity: Minor
Found in app/components/handle-payment.js by watson

Ember is discouraging using prototype extensions. For more info about this please refer to the following PR Encourage decorator-style Ember.computed/Ember.observer.

To fix this, run ember watson:convert-prototype-extensions.

Detected ES5 method syntax
Open

Severity: Minor
Found in app/components/handle-payment.js by watson

Newer versions of JavaScript provide a shorthand syntax for functions.

import Ember from 'ember';

export default Ember.Component.extend({
  click() {
    this.get('onclick')();
  }
});

To fix this, run ember watson:methodify.

There are no issues that match your filters.

Category
Status