Using jQuery.extend to mix in customFormUtils methods, instead of borrowMethods in utils.js. Utils.js no longer needs to be loaded into the custom forms.
This commit is contained in:
parent
b2dc8f0060
commit
9366d80151
5 changed files with 2 additions and 5 deletions
|
@ -12,7 +12,7 @@ var addAuthorForm = {
|
|||
|
||||
mixIn: function() {
|
||||
// Mix in the custom form utility methods
|
||||
vitro.utils.borrowMethods(vitro.customFormUtils, this);
|
||||
$.extend(this, vitro.customFormUtils);
|
||||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
|
|
|
@ -12,7 +12,7 @@ var customForm = {
|
|||
|
||||
mixIn: function() {
|
||||
// Mix in the custom form utility methods
|
||||
vitro.utils.borrowMethods(vitro.customFormUtils, this);
|
||||
$.extend(this, vitro.customFormUtils);
|
||||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue