Commits

Sean Wilkinson committed 2690542

Specified argument type checking more carefully

Comments (0)

Files changed (1)

src/browser-client/qmachine.js

      // the task so that the underlying system (QM, in this case) can control
      // system resources itself. Examples will be included in the distribution
      // that will accompany the upcoming publication(s).
-        if (box === undefined) {
+        if (is_String(box) === false) {
             box = global.QM.box;
         }
         var task = avar({box: box});
  // Out-of-scope definitions
 
     defineProperty(global, 'QM', {
-     // This creates the "namespace" for QMachine.
-        configurable: false,
+     // This creates the "namespace" for QMachine as a global `QM` object.
+     // NOTE: I commented out two of the next three lines because their values
+     // match the ES5.1 default values.
+        //configurable: false,
         enumerable: true,
-        writable: false,
+        //writable: false,
         value: {}
     });
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.