Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit 7331d17

Browse files
Shane Tomlinsonvladikoff
authored andcommitted
fix(client): cookies_disabled.js's constructor is a function. (#4528) r=vladikoff
It was impossible to run unit tests w/ `babel.enabled: false` because the browser would see the `constructor` function in cookies_disabled.js and think that was an ES2015 `constructor`. Babel converts the constructor to a function and allows the unit tests to run. Instead of depending on Babel, make the `constructor` a function and allow the unit tests to run w/o babel.
1 parent 67edb5c commit 7331d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/scripts/views/cookies_disabled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ define(function (require, exports, module) {
1313
const Template = require('stache!templates/cookies_disabled');
1414

1515
var View = BaseView.extend({
16-
constructor (options) {
16+
constructor: function (options) {
1717
BaseView.call(this, options);
1818

1919
this._Storage = options.Storage || Storage;

0 commit comments

Comments
 (0)