Skip to content

Commit

Permalink
chore(release): bump version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
softmonkeyjapan committed Oct 25, 2017
1 parent b5fe4a7 commit 50bc740
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simpleresource",
"version": "1.0.3",
"version": "1.0.4",
"authors": [
"Loic Kartono <[email protected]>"
],
Expand Down
7 changes: 5 additions & 2 deletions dist/simple-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,11 @@
* @return {Promise} Promise
*/
resource.prototype.save = function () {
var action = this.id ? '$update' : '$create'
return this[action]()
if (this.id) {
return this.$update({ id: this.id });
} else {
return this.$create();
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/simple-resource.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simpleresource",
"version": "1.0.3",
"version": "1.0.4",
"description": "Connects business objects and REST web services for Angular.js",
"author": "Loic Kartono <[email protected]> (http://www.kartono-loic.com)",
"scripts": {
Expand Down

0 comments on commit 50bc740

Please sign in to comment.