fixed Cordova 3.0 method signature