Commits

Shlomi Fish committed ed650b4

Correct the accessors.

  • Participants
  • Parent commits af2e003

Comments (0)

Files changed (1)

File abc-path/js/abc-path.js

                 });
 
                 if (true_cells.length == 0) {
-                    this._error(['letter', letter]);
+                    this.setError(['letter', letter]);
                 }
                 else if (true_cells.length == 1) {
                     var xy = true_cells[0];
                     var existing_verdict = this._get_verdict(neighbour_letter, x, y);
 
                     if (existing_verdict == this.ABCP_VERDICT_YES()) {
-                        this._error(['mismatched_verdict', x, y]);
+                        this.setError(['mismatched_verdict', x, y]);
                         return;
                     }
                     
                 var letters_aref = this._get_possible_letter_indexes(x, y);
 
                 if (letters_aref.length == 0) {
-                    this._error(['cell', [x, y]]);
+                    this.setError(['cell', [x, y]]);
                     return;
                 }
                 else if (letters_aref.length == 1) {