Fixed method signature to match JS-file
Merge pull request #1050 from ljl/master

Fixed method signature to match JS-file