Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We edit the setOutcome method in learning_client.js from the TBD as follows:

Code Block
titlelearning_client.js
        setOutcome : function(data, handler) {
            if ( handler === 'silent' ) handler = (function (result) { } );
            if ( handler === undefined ) handler = (function (result) {
                if (result.error) {
                    alert('Error, unable to send outcome to server.');
                }
            } ) ;
            osapi.learning.setOutcome({'outcome' : data}).execute(handler);
        },

...