Skip to content

Commit d26eaff

Browse files
committed
fix typo
1 parent d8ed2fc commit d26eaff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

addon/components/json-form-validate-if/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default Ember.Component.extend({
99
operators: {},
1010

1111
_operators: Ember.computed(function () {
12-
var operators = this.get('operators');
12+
let operators = this.get('operators');
1313
operators['eq'] = function (a,b) {return String(a)==b; };
1414
operators['has'] = function (a,b) {return a && Ember.isArray(a) && (a.contains(b) || a.isAny('id', b));};
1515
operators['in'] = function (a,b) {return b && b.split && b.split(',').contains(String(a));};
@@ -20,7 +20,7 @@ export default Ember.Component.extend({
2020

2121
init() {
2222
this._super();
23-
var root, onlyIf, path, form, object, args;
23+
let root, onlyIf, path, form, object, args;
2424
form = this.get('form');
2525
object = this.get('object');
2626

addon/components/json-form/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Ember.TextSupport.reopen({
1717
let ValidationMixin = Ember.Mixin.create({
1818
__operators: {},
1919
_operators: Ember.computed(function () {
20-
var operators = this.get('__operators');
21-
ooperators['eq'] = function (a,b) {return String(a)==b; };
20+
let operators = this.get('__operators');
21+
operators['eq'] = function (a,b) {return String(a)==b; };
2222
operators['has'] = function (a,b) {return a && Ember.isArray(a) && (a.contains(b) || a.isAny('id', b));};
2323
operators['in'] = function (a,b) {return b && b.split && b.split(',').contains(String(a));};
2424
operators['not'] = function(a, b) {return a != b;};
@@ -27,7 +27,7 @@ let ValidationMixin = Ember.Mixin.create({
2727
}),
2828

2929
_validator: Ember.computed('_operators', function () {
30-
var operators = this.get('_operators');
30+
let operators = this.get('_operators');
3131
return function(model, attribute) {
3232
let findFields = function () {
3333
let foundFields = [];

0 commit comments

Comments
 (0)