it depends which angle you look: a class change that changes the CSS is definitely not internal too me, while the cancelEdit function could be renamed/moved or its content could be moved elsewhere and still do the same CSS change.