Skip to content

Commit dfef441

Browse files
committed
Avoid circular reference when cloning options
1 parent 992c340 commit dfef441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/igniteui.angular2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class IgControlBase<Model> implements DoCheck {
194194
}
195195

196196
if (!this.equalsDiff(opts, this._opts, diff)) {
197-
this._opts = JSON.parse(JSON.stringify(opts));
197+
this._opts = jQuery.extend(true, {}, opts);
198198
for (i = 0; i < diff.length; i++) {
199199
option = diff[i].key;
200200
if (jQuery.ui[this._widgetName] &&

0 commit comments

Comments
 (0)