1. Sean Wilkinson
  2. qmachine

Commits

Sean Wilkinson  committed 75913a1

Subtle change to `load_data` method for use in paper

  • Participants
  • Parent commits 3a159ce
  • Branches master

Comments (0)

Files changed (1)

File src/browser-client/qmachine.js

View file
  • Ignore whitespace
 
 //- qmachine.js ~~
 //                                                      ~~ (c) SRW, 15 Nov 2012
-//                                                  ~~ last updated 01 Feb 2013
+//                                                  ~~ last updated 02 Feb 2013
 
 (function (global, sandbox) {
     'use strict';
         y.on('error', function (message) {
          // This function needs documentation.
             if (is_Function(callback)) {
-                callback(message, y.val);
+                y.val = callback(message, y.val);
             }
             return;
         }).Q(function (evt) {
         }).Q(function (evt) {
          // This function needs documentation.
             if (is_Function(callback)) {
-                callback(null, y.val);
+                y.val = callback(null, y.val);
             }
             return evt.exit();
         });