Change attribute to getter
Wrap attributes with a getter method.
Start file
function() { var a = thing.index < other.attribute; var b = thing.index < other.attribute; var c = thing.attribute < other.index; var d = thing.attribute < other.index; }
End file
function() { var a = thing.get('index') < other.get('attribute'); var b = thing.get('index') < other.get('attribute'); var c = thing.get('attribute') < other.get('index'); var d = thing.get('attribute') < other.get('index'); }
View Diff
2,5c2,5 < var a = thing.index < other.attribute; < var b = thing.index < other.attribute; < var c = thing.attribute < other.index; < var d = thing.attribute < other.index; --- > var a = thing.get('index') < other.get('attribute'); > var b = thing.get('index') < other.get('attribute'); > var c = thing.get('attribute') < other.get('index'); > var d = thing.get('attribute') < other.get('index');
Solutions by @DHM29978992:
Unlock 1 remaining solutions by signing in and submitting your own entry