refactor(module): Remove AMD wrapper from SignUpPasswordView (#6287) r=@vladikoff
Extraction from #6273
This commit is contained in:
Родитель
1fd05d2110
Коммит
fe9c262404
|
@ -2,24 +2,21 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
define(function (require, exports, module) {
|
||||
'use strict';
|
||||
import AuthErrors from '../lib/auth-errors';
|
||||
import BackMixin from './mixins/back-mixin';
|
||||
import CheckboxMixin from './mixins/checkbox-mixin';
|
||||
import Cocktail from 'cocktail';
|
||||
import CoppaMixin from './mixins/coppa-mixin';
|
||||
import EmailOptInMixin from './mixins/email-opt-in-mixin';
|
||||
import FlowEventsMixin from './mixins/flow-events-mixin';
|
||||
import FormPrefillMixin from './mixins/form-prefill-mixin';
|
||||
import FormView from './form';
|
||||
import PasswordMixin from './mixins/password-mixin';
|
||||
import ServiceMixin from './mixins/service-mixin';
|
||||
import SignUpMixin from './mixins/signup-mixin';
|
||||
import Template from 'templates/sign_up_password.mustache';
|
||||
|
||||
const AuthErrors = require('../lib/auth-errors');
|
||||
const BackMixin = require('./mixins/back-mixin');
|
||||
const CheckboxMixin = require('./mixins/checkbox-mixin');
|
||||
const Cocktail = require('cocktail');
|
||||
const CoppaMixin = require('./mixins/coppa-mixin');
|
||||
const EmailOptInMixin = require('./mixins/email-opt-in-mixin');
|
||||
const FlowEventsMixin = require('./mixins/flow-events-mixin');
|
||||
const FormPrefillMixin = require('./mixins/form-prefill-mixin');
|
||||
const FormView = require('./form');
|
||||
const PasswordMixin = require('./mixins/password-mixin');
|
||||
const ServiceMixin = require('./mixins/service-mixin');
|
||||
const SignUpMixin = require('./mixins/signup-mixin');
|
||||
const Template = require('templates/sign_up_password.mustache');
|
||||
|
||||
class SignUpPasswordView extends FormView {
|
||||
class SignUpPasswordView extends FormView {
|
||||
constructor (options) {
|
||||
super(options);
|
||||
|
||||
|
@ -77,9 +74,9 @@ define(function (require, exports, module) {
|
|||
_doPasswordsMatch() {
|
||||
return this._getPassword() === this._getVPassword();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cocktail.mixin(
|
||||
Cocktail.mixin(
|
||||
SignUpPasswordView,
|
||||
BackMixin,
|
||||
CheckboxMixin,
|
||||
|
@ -92,7 +89,6 @@ define(function (require, exports, module) {
|
|||
PasswordMixin,
|
||||
ServiceMixin,
|
||||
SignUpMixin
|
||||
);
|
||||
);
|
||||
|
||||
module.exports = SignUpPasswordView;
|
||||
});
|
||||
module.exports = SignUpPasswordView;
|
||||
|
|
Загрузка…
Ссылка в новой задаче