Make eslint happy.
This commit is contained in:
@@ -78,7 +78,7 @@ export default Ember.Component.extend({
|
||||
}
|
||||
|
||||
// Check the table name vs the filter
|
||||
if (filter.source == key || filter.source + "s" == key) {
|
||||
if (filter.source === key || filter.source + "s" === key) {
|
||||
tables.unshift({
|
||||
name: key,
|
||||
columns: schema[key],
|
||||
@@ -95,7 +95,7 @@ export default Ember.Component.extend({
|
||||
// filter the columns
|
||||
let filterCols = [];
|
||||
schema[key].forEach(function(col) {
|
||||
if (filter.source == col.column_name) {
|
||||
if (filter.source === col.column_name) {
|
||||
filterCols.unshift(col);
|
||||
} else if (filter.test(col.column_name)) {
|
||||
filterCols.push(col);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
export default Ember.TextField.extend({
|
||||
value: function(key, value, previousValue) {
|
||||
value: function(key, value) {
|
||||
if (arguments.length > 1) {
|
||||
this.get('params')[this.get('pname')] = value;
|
||||
}
|
||||
|
||||
return this.get('params')[this.get('pname')];
|
||||
}.property('params', 'pname')
|
||||
});
|
||||
|
||||
@@ -67,10 +67,6 @@ export default Ember.Component.extend({
|
||||
return this.get('info.nullable');
|
||||
}
|
||||
|
||||
function matches(regex) {
|
||||
return regex.test(value);
|
||||
}
|
||||
|
||||
const intVal = parseInt(value, 10);
|
||||
const intValid = !isNaN(intVal) && intVal < 2147483648 && intVal > -2147483649;
|
||||
const isPositiveInt = /^\d+$/.test(value);
|
||||
|
||||
@@ -162,7 +162,7 @@ const QueryResultComponent = Ember.Component.extend({
|
||||
form.submit();
|
||||
Em.run.next('afterRender', function() {
|
||||
document.body.removeChild(form);
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user