edifice 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Edifice
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -57,9 +57,9 @@ var methods = {
57
57
  },
58
58
 
59
59
  // validate a single field
60
- validate: function($field) {
61
- var validator;
62
- if (validator = $field.data('validator')) {
60
+ validate: function($field, validator) {
61
+ if (typeof validator === 'undefined') { validator = $field.data('validator'); }
62
+ if (validator) {
63
63
  var error = validator($field), valid = error === true;
64
64
  this.clear_error($field);
65
65
  if (!valid) {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edifice
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Coleman