Skip to content
Browse files

Renamed to Validator

  • Loading branch information...
1 parent 07645a2 commit 7e5c0e1ef0d1017bd57d56e6881fffd8397c35a4 @fk1blow committed May 29, 2011
Showing with 0 additions and 53 deletions.
  1. +0 −53 lib/Controller/Validators.js
View
53 lib/Controller/Validators.js
@@ -1,53 +0,0 @@
-function cl(o) {
- console.log(o);
-}
-
-
-Module('Seek', function() {
-
- Module('ActionModule', function() {
-
- Class('Validators', {
- my: {
- methods: {
- nameIsString: function(cn) {
- if(cn.length > 0 && typeof(cn) == 'string') {
- return true;
- }
- return false;
- },
-
- hasValidMeta: function(cn) {
- if(typeof(global[cn]) != 'undefined' && typeof(cn) == 'string' && global[cn].meta.name == cn && this.nameIsString(cn)) {
- return true;
- }
- return false
- },
-
- hasValidName: function(cn) {
- if(typeof(cn) == 'string' && cn.length > 0 && typeof(global[cn]) != 'undefined') {
- return /[a-zA-Z]+/i.test(cn);
- }
- return false;
- },
-
- isAJooseObject: function(cn) {
- if(typeof(global[cn]) == 'function' && global[cn].meta.name == cn) {
- return true;
- }
- return false;
- },
-
- hasMethod: function(cn, m) {
- if(typeof(global[cn].meta.methods[m]) == 'object') {
- return true;
- }
- return false;
- }
- }
- }
- });
-
- });
-
-});

0 comments on commit 7e5c0e1

Please sign in to comment.
Something went wrong with that request. Please try again.