Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.

Commit 06987b6

Browse files
Remove post processing of defaults, leave defaults as enpoint provided objects
* fixes an issue with storage then retrieval from session storage
1 parent d21bedf commit 06987b6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

js/utils.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,6 @@
187187

188188
} );
189189

190-
/**
191-
* Finish processing the defaults, assigning `defaults` if available, otherwise null.
192-
*
193-
* @todo required arguments
194-
*/
195-
_.each( modelInstance.defaults, function( theDefault, index ) {
196-
if ( _.isUndefined( theDefault['default'] ) ) {
197-
modelInstance.defaults[ index ] = null;
198-
} else {
199-
modelInstance.defaults[ index ] = theDefault['default'];
200-
}
201-
} );
202190
};
203191

204192
/**

0 commit comments

Comments
 (0)