fixed binding to a private method

causes problems in dart2js

Closes #45