Sha256: f264ed3c2ad09bc05f8a3db52ef6ebd95ead9ad6723c0b26880a441c0cab3959
Contents?: true
Size: 865 Bytes
Versions: 11
Compression:
Stored size: 865 Bytes
Contents
I"U(function() { App.Validators.Base = (function() { Base.sharedInstances = {}; Base.instance = function(obj, attr, opts) { var sharedInstance, validatorName; validatorName = this.name; if (this.sharedInstances[validatorName] == null) { this.sharedInstances[validatorName] = new App.Validators[validatorName]; } sharedInstance = this.sharedInstances[validatorName]; sharedInstance.assignAttribs(obj, attr, opts); return sharedInstance; }; function Base() { this.obj = null; this.attr = null; this.val = null; this.opts = null; } Base.prototype.assignAttribs = function(obj, attr, opts) { this.obj = obj; this.attr = attr; this.val = this.obj[this.attr]; return this.opts = opts; }; return Base; })(); }).call(this); :ET
Version data entries
11 entries across 4 versions & 1 rubygems