Commits

Sean Wilkinson  committed 208db2b

All avars now have "Method Q" no matter what

  • Participants
  • Parent commits c4c2de3

Comments (0)

Files changed (2)

File package.json

 {
     "name": "quanah",
-    "version": "0.0.6",
+    "version": "0.0.7",
     "description": "Event-driven framework for distributed computing",
     "main": "src/quanah.js",
     "directories": {

File src/quanah.js

 //          prototype definitions use ES5 getters and setters, too. I would
 //          need to abandon most (if not all) use of getters and setters ...
 //
-//                                                      ~~ (c) SRW, 10 Oct 2012
+//                                                      ~~ (c) SRW, 14 Oct 2012
 
 (function (global) {
     'use strict';
             return;
         });
 
+        Object.defineProperty(AVar.prototype, 'Q', {
+         // NOTE: I commented two of the next three lines out because
+         // their values are the default ones specified by the ES5.1
+         // standard.
+            //configurable: false,
+            //enumerable: true,
+            //writable: false,
+            value: target
+        });
+
         if (global.hasOwnProperty('process') && (typeof module === 'object')) {
          // Export as a Node.js module without irritating namespace nannies.
          // I have always preferred exporting as an Object prototype method,