google-nomulus/java/google/registry/ui/js
guyben cdcd5c2a0e Remove the "create" funtion from the Resource JS class
The original thought was that the actions you can do on a resource is:
- create it
- read it
- update it

(I guess you should have "delete" as well, but that isn't currently there)

Although we use "read" and "update", we never use "create". So having it goes against the YAGNI principle :)

Also, it had a bug: when sending a "create", the opt_newId in send_() would
permanentily change the uri of the request, causing any subsequent request to
go to the wrong endpoint.

By removing the "create" we can simplify the rest of the code (the send_() function).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213029499
2018-09-14 21:29:57 -04:00
..
registrar Update Nomulus to build with bazel 0.16.0 2018-08-10 13:46:48 -04:00
BUILD Update Nomulus to build with bazel 0.16.0 2018-08-10 13:46:48 -04:00
component.js Replace uses of @code in Javascript documentation with Markdown backticks 2018-02-05 23:51:49 -05:00
console.js Remove final uses of @code in JS comments 2018-03-06 18:51:32 -05:00
edit_item.js Remove final uses of @code in JS comments 2018-03-06 18:51:32 -05:00
forms.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
menu_button.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
resource.js Remove the "create" funtion from the Resource JS class 2018-09-14 21:29:57 -04:00
resource_component.js Use JSON.parse instead of deprecated goog.json.parse. 2017-08-29 17:12:44 -04:00
session.js Replace uses of @code in Javascript documentation with Markdown backticks 2018-02-05 23:51:49 -05:00
util.js Remove final uses of @code in JS comments 2018-03-06 18:51:32 -05:00
xml.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00