[KSS-checkins] r49584 - kukit/kukit.js/branch/finish-closures/kukit
gotcha at codespeak.net
gotcha at codespeak.net
Sun Dec 9 20:55:26 CET 2007
Author: gotcha
Date: Sun Dec 9 20:55:26 2007
New Revision: 49584
Modified:
kukit/kukit.js/branch/finish-closures/kukit/providerreg.js
Log:
private classes
Modified: kukit/kukit.js/branch/finish-closures/kukit/providerreg.js
==============================================================================
--- kukit/kukit.js/branch/finish-closures/kukit/providerreg.js (original)
+++ kukit/kukit.js/branch/finish-closures/kukit/providerreg.js Sun Dec 9 20:55:26 2007
@@ -85,11 +85,14 @@
* this provider expects a single parameter, the string.
*/
-var IdentityPP = function() {
+/*
+* class _IdentityPP
+*/
+var _IdentityPP = function() {
this.check = function(args) {
// check does not need to be used here actually.
;;; if (args.length != 1) {
-;;; throw new Error('internal error, IdentityPP needs 1 argument');
+;;; throw new Error('internal error, _IdentityPP needs 1 argument');
;;; }
};
@@ -98,7 +101,10 @@
};
};
-var FormVarPP = function() {
+/*
+* class _FormVarPP
+*/
+var _FormVarPP = function() {
this.check = function(args) {
;;; if (args.length != 2) {
;;; throw new Error('formVar method needs 2 arguments [formname, varname]');
@@ -109,7 +115,10 @@
};
};
-var CurrentFormVarPP = function() {
+/*
+* class _CurrentFormPP
+*/
+var _CurrentFormVarPP = function() {
this.check = function(args) {
;;; if (args.length != 0 && args.length != 1) {
;;; throw new Error('currentFormVar method needs 0 or 1 argument [varname]');
@@ -126,7 +135,10 @@
};
};
-var CurrentFormVarFromKssAttrPP = function() {
+/*
+* class _CurrentFormVarFromKssAttrPP
+*/
+var _CurrentFormVarFromKssAttrPP = function() {
this.check = function(args) {
;;; if (args.length != 1 && args.length != 2) {
;;; kukit.E = 'currentFormVarFromKssAttr method needs 1 or 2 argument';
@@ -152,7 +164,10 @@
/* BBB. To be deprecated at 2007-08-15 */
-var FormPP = function() {
+/*
+* class _FormPP
+*/
+var _FormPP = function() {
this.check = function(args) {
;;; if (args.length != 1) {
;;; throw new Error('form method needs 1 arguments [formname]');
@@ -168,7 +183,10 @@
};
/* BBB. To be deprecated at 2007-08-15 */
-var CurrentFormPP = function() {
+/*
+* class _CurrentFormPP
+*/
+var _CurrentFormPP = function() {
this.check = function(args) {
;;; if (args.length != 0) {
;;; throw new Error('currentForm method needs no argument');
@@ -183,7 +201,10 @@
};
};
-var NodeAttrPP = function() {
+/*
+* class _NodeAttrPP
+*/
+var _NodeAttrPP = function() {
this.check = function(args) {
;;; if (args.length != 1 && args.length != 2) {
;;; kukit.E = 'nodeAttr method needs 1 or 2 argument (attrname,';
@@ -210,7 +231,10 @@
};
};
-var KssAttrPP = function() {
+/*
+* class _KssAttrPP
+*/
+var _KssAttrPP = function() {
this.check = function(args) {
;;; if (args.length != 1 && args.length != 2) {
;;; kukit.E = 'kssAttr method needs 1 or 2 argument (attrname,';
@@ -236,7 +260,10 @@
};
};
-var NodeContentPP = function() {
+/*
+* class _NodeContentPP
+*/
+var _NodeContentPP = function() {
this.check = function(args) {
;;; if (args.length != 0 && args.length != 1) {
;;; throw new Error('nodeContent method needs 0 or 1 argument [recursive].');
@@ -251,7 +278,10 @@
};
};
-var StateVarPP = function() {
+/*
+* class _StateVarPP
+*/
+var _StateVarPP = function() {
this.check = function(args) {
;;; if (args.length != 1) {
;;; throw new Error('stateVar method needs 1 argument [varname].');
@@ -269,7 +299,10 @@
};
};
-var PassPP = function() {
+/*
+* class _PassPP
+*/
+var _PassPP = function() {
this.check = function(args) {
;;; if (args.length != 1) {
;;; throw new Error('pass method needs 1 argument [attrname].');
@@ -290,19 +323,19 @@
kukit.pprovidersGlobalRegistry = new this.ValueProviderRegistry();
-kukit.pprovidersGlobalRegistry.register('', IdentityPP);
+kukit.pprovidersGlobalRegistry.register('', _IdentityPP);
kukit.pprovidersGlobalRegistry.register('currentFormVar',
- CurrentFormVarPP);
+ _CurrentFormVarPP);
kukit.pprovidersGlobalRegistry.register('currentFormVarFromKssAttr',
- CurrentFormVarFromKssAttrPP);
-kukit.pprovidersGlobalRegistry.register('formVar', FormVarPP);
-kukit.pprovidersGlobalRegistry.register('kssAttr', KssAttrPP);
-kukit.pprovidersGlobalRegistry.register('stateVar', StateVarPP);
-kukit.pprovidersGlobalRegistry.register('pass', PassPP);
-kukit.pprovidersGlobalRegistry.register('nodeContent', NodeContentPP);
-kukit.pprovidersGlobalRegistry.register('nodeAttr', NodeAttrPP);
-kukit.pprovidersGlobalRegistry.register('form', FormPP);
-kukit.pprovidersGlobalRegistry.register('currentForm', CurrentFormPP);
+ _CurrentFormVarFromKssAttrPP);
+kukit.pprovidersGlobalRegistry.register('formVar', _FormVarPP);
+kukit.pprovidersGlobalRegistry.register('kssAttr', _KssAttrPP);
+kukit.pprovidersGlobalRegistry.register('stateVar', _StateVarPP);
+kukit.pprovidersGlobalRegistry.register('pass', _PassPP);
+kukit.pprovidersGlobalRegistry.register('nodeContent', _NodeContentPP);
+kukit.pprovidersGlobalRegistry.register('nodeAttr', _NodeAttrPP);
+kukit.pprovidersGlobalRegistry.register('form', _FormPP);
+kukit.pprovidersGlobalRegistry.register('currentForm', _CurrentFormPP);
}(); /// MODULE END
More information about the Kukit-checkins
mailing list