ember-cli-simple-validation
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -16,7 +16,13 @@ import Ember from "ember"; | ||
}); | ||
Ember.Binding.from("model." + fields[0] + "IsPrimed").to("isPrimed").connect(this); | ||
Ember.defineProperty(this, "isPrimed", Ember.computed("model." + fields[0] + "IsPrimed", function() { | ||
return this.get("model." + fields[0] + "IsPrimed"); | ||
})); | ||
}else{ | ||
computedKeys.push("fieldName"); | ||
Ember.Binding.from("model." + field + "IsPrimed").to("isPrimed").connect(this); | ||
Ember.Binding.from("model." + field).to("fieldName").connect(this); | ||
Ember.defineProperty(this, "isPrimed", Ember.computed("model." + field + "IsPrimed", function() { | ||
return this.get("model." + field + "IsPrimed"); | ||
})); | ||
Ember.defineProperty(this, "fieldName", Ember.computed("model." + field, function() { | ||
return this.get("model." + field); | ||
})); | ||
} | ||
@@ -23,0 +29,0 @@ |
ember-cli-simple-validation Changelog | ||
============================== | ||
1.4.0 | ||
----- | ||
* [EMBER]: removed Ember.Binding as its now deprecated | ||
([#23](https://github.com/toranb/ember-cli-simple-validation/pull/23)) | ||
1.3.0 | ||
@@ -5,0 +12,0 @@ ----- |
{ | ||
"name": "ember-cli-simple-validation", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "ember-cli addon that provides simple form validation", | ||
@@ -5,0 +5,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28181
158