You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -209,19 +334,19 @@ Create a data context from the data.
209
334
**Type:**`function`
210
335
211
336
**Parameters:**
212
-
-parameters: `data` {any} - The data object.
213
-
-parameters: `propertyName` {string} - The property name where the data is located. Default is null.
214
-
-parameters: `parent` {[DataContext](#datacontext)} - The parent data context. Default is null.
337
+
-`data` {any} - The data object.
338
+
-`propertyName` {string} - The property name where the data is located. Default is null.
339
+
-`parent` {[DataContext](#datacontext)} - The parent data context. Default is null.
215
340
216
341
**Returns:**
217
-
-returns: {[DataContext](#datacontext)} - The data context.
342
+
- {[DataContext](#datacontext)} - The data context.
218
343
219
344
**Static Properties:**
220
-
-static property: `IgnoreMetadata` {boolean} - Global flag to ignore metadata and comments. Default is false.
221
-
-static method: `CreateDataContext` {(data: any, propertyName?: string, parent?: [DataContext](#datacontext)) => [DataContext](#datacontext)} - Create a data context from the data.
222
-
-static method: `Parse` {(str: string, reviver?: [Reviver](#reviver)) => [DataContext](#datacontext)} - Parse JSON string to the data context.
223
-
-static metohd: `ParsePromise` {(str: string, reviver?: [Reviver](#reviver)) => Promise<[DataContext](#datacontext)>} - Parse JSON string to the data context asynchonously. Returns a promise.
224
-
-static method: `Stringify` {(data: any, replacer?: Replacer, space?: number) => string} - Stringify the data to JSON string.
345
+
-`ignoreMetadata` {boolean} - Global flag to ignore metadata and comments. Default is false.
346
+
-`createDataContext` {(data: any, propertyName?: string, parent?: [DataContext](#datacontext)) => [DataContext](#datacontext)} - Create a data context from the data.
347
+
-`parse` {(str: string, reviver?: [Reviver](#reviver)) => [DataContext](#datacontext)} - Parse JSON string to the data context.
348
+
-`parsePromise` {(str: string, reviver?: [Reviver](#reviver)) => Promise<[DataContext](#datacontext)>} - Parse JSON string to the data context asynchronously. Returns a promise.
349
+
-`stringify` {(data: any, replacer?: Replacer, space?: number) => string} - Stringify the data to JSON string.
225
350
226
351
### *DataContext*
227
352
@@ -230,20 +355,21 @@ The data context Proxy object.
-property: `_isDataContext` {boolean} - The flag that indicates that the object is a data context. Default is true.
234
-
-property: `_isModified` {boolean} - The flag that indicates that the object is modified. Default is false.
235
-
-property: `_modified` {Array<[PropertyName](#propertyname)>} - The array of modified properties.
236
-
-property: `_propertyName` {string} - The property name where the data is located. Default is null.
237
-
-property: `_parent` {[DataContext](#datacontext)} - The parent data context. Default is null.
238
-
-property: `_events` {Map<string, [EventListener](#eventlistenerevent)>} - The map of event listeners.
358
+
-`_isDataContext` {boolean} - The flag that indicates that the object is a data context. Default is true.
359
+
-`_isModified` {boolean} - The flag that indicates that the object is modified. Default is false.
360
+
-`_modified` {Array<[PropertyName](#propertyname)>} - The array of modified properties.
361
+
-`_propertyName` {string} - The property name where the data is located. Default is null.
362
+
-`_parent` {[DataContext](#datacontext)} - The parent data context. Default is null.
363
+
-`_events` {Map<string, [EventListener](#eventlistenerevent)>} - The map of event listeners.
239
364
240
-
- method: `once` {(propertyName: [PropertyName](#propertyname), listener: [EventListener](#eventlistenerevent)) => void} - Add an event listener that will be called only once.
-`once` {(propertyName: [PropertyName](#propertyname), listener: [EventListener](#eventlistenerevent)) => void} - Add an event listener that will be called only once.
0 commit comments