@micropermit/client-angular 0.2.12 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -950,6 +950,18 @@
950
950
  this.valueSubj = null;
951
951
  this._getPromise = null;
952
952
  };
953
+ /**
954
+ * @return {?}
955
+ */
956
+ LinkField.prototype.copyUninitialized = /**
957
+ * @return {?}
958
+ */
959
+ function () {
960
+ /** @type {?} */
961
+ var copy = this.copy();
962
+ copy.uninitialize();
963
+ return copy;
964
+ };
953
965
  /**
954
966
  * @return {?}
955
967
  */
@@ -1105,7 +1117,23 @@
1105
1117
  * @return {?}
1106
1118
  */
1107
1119
  function (toCopy, client) {
1108
- return (/** @type {?} */ (lodash.cloneDeep(toCopy)));
1120
+ return (/** @type {?} */ (lodash.cloneDeepWith(toCopy, MicroObject.deepCopyCustomizer)));
1121
+ };
1122
+ /**
1123
+ * @private
1124
+ * @param {?} value
1125
+ * @return {?}
1126
+ */
1127
+ MicroObject.deepCopyCustomizer = /**
1128
+ * @private
1129
+ * @param {?} value
1130
+ * @return {?}
1131
+ */
1132
+ function (value) {
1133
+ if (value instanceof MicroClient) {
1134
+ return value;
1135
+ }
1136
+ return undefined;
1109
1137
  };
1110
1138
  /**
1111
1139
  * @template T