ember-ds-inline-edit
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -83,2 +83,3 @@ import Ember from 'ember' | ||
model.save() | ||
.then(updatedModel => this.onUpdate && this.onUpdate(updatedModel)) | ||
.catch(error => { Ember.run(() => { | ||
@@ -85,0 +86,0 @@ model.set(prop, previousValue) |
{ | ||
"name": "ember-ds-inline-edit", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"bugs": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/IliasDeros/ember-ds-inline-edit/issues" |
@@ -20,3 +20,4 @@ Edit an ember DS.model inline by clicking on it to toggle editor. | ||
prop='name' | ||
onError='onError' | ||
onError=(action send 'onError') | ||
onUpdate=(action send 'onUpdate') | ||
}} | ||
@@ -44,2 +45,4 @@ ``` | ||
When an update is successful, the `onUpdate` function is called with the updated model. | ||
#### Keyboard Support | ||
@@ -52,2 +55,2 @@ | ||
#### Error Handling | ||
When an error occurs, an `onError` action is sent. | ||
When an error occurs, an `onError` action is executed. |
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
48634
94
53