Răsfoiți Sursa

notready -> notReady

Mike Hamburg 15 ani în urmă
părinte
comite
754e9754a0
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      core/random.js
  2. 1 1
      core/sjcl.js

+ 1 - 1
core/random.js

@@ -47,7 +47,7 @@ sjcl.random = {
     var out = [], i, readiness = this.isReady(paranoia), g;
     var out = [], i, readiness = this.isReady(paranoia), g;
   
   
     if (readiness === this._NOT_READY) {
     if (readiness === this._NOT_READY) {
-      throw new sjcl.exception.notready("generator isn't seeded");
+      throw new sjcl.exception.notReady("generator isn't seeded");
     } else if (readiness & this._REQUIRES_RESEED) {
     } else if (readiness & this._REQUIRES_RESEED) {
       this._reseedFromPools(!(readiness & this._READY));
       this._reseedFromPools(!(readiness & this._READY));
     }
     }

+ 1 - 1
core/sjcl.js

@@ -58,7 +58,7 @@ var sjcl = {
     },
     },
 
 
     /** @class Something isn't ready. */
     /** @class Something isn't ready. */
-    notready: function(message) {
+    notReady: function(message) {
       this.toString = function() { return "NOT READY: "+this.message; };
       this.toString = function() { return "NOT READY: "+this.message; };
       this.message = message;
       this.message = message;
     }
     }