ribot / pig

Pig aims to be the bridge in the middle of your native mobile UI and a some shared JavaScript business logic.
Other
11 stars 1 forks source link

If JSON.stringify fails in Pig.emit(), it calls a method that doesn't exist #13

Closed stefanpearson closed 10 years ago

stefanpearson commented 10 years ago

event-bus.js

if ( data ) {
    try {
      json = JSON.stringify( data );
    } catch ( error ) {
      return this.fail( error );
    }
}

this.fail does not exist