mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-10-29 02:50:09 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
81032e48d0
commit
d42e1531bd
@ -244,7 +244,6 @@ var Snake = {
|
|||||||
field = field || this._field
|
field = field || this._field
|
||||||
field = this._field = typeof(field) == typeof('str') ? document.querySelector(field)
|
field = this._field = typeof(field) == typeof('str') ? document.querySelector(field)
|
||||||
: field
|
: field
|
||||||
// XXX is it a good idea to re-make the field on every start???
|
|
||||||
this._make_field()
|
this._make_field()
|
||||||
this._cells = [].slice.call(field.querySelectorAll('td'))
|
this._cells = [].slice.call(field.querySelectorAll('td'))
|
||||||
this.field_size = {
|
this.field_size = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user