diff --git a/API.md b/API.md index 6322633..5495893 100644 --- a/API.md +++ b/API.md @@ -17,20 +17,20 @@ Observer that provides sync events when data is changed. For data-centric applic | data | object | Data that obsserver is modifying. This data should not be modified by application logic. | -[new Observer([data])](#new_Observer_new) (constructor) -[.set([path], data)](#Observer+set) -[.patch([path], data)](#Observer+patch) -[.unset([path])](#Observer+unset) -[.get([path])](#Observer+get) ⇒ \* -[.clear()](#Observer+clear) -[.on(name, callback, [scope], [once])](#EventEmitter+on) ⇒ [EventHandler](#EventHandler) -[.once(name, callback, [scope])](#EventEmitter+once) ⇒ [EventHandler](#EventHandler) -[.emit(name, [...args])](#EventEmitter+emit) -[.off([name], [callback], [scope])](#EventEmitter+off) -[[path]:set (value, old)](#Observer+event_[path]_set) (event) -[*:set (path, value, old)](#Observer+event_*_set) (event) -[[path]:unset (old)](#Observer+event_[path]_unset) (event) -[*:unset (path, old)](#Observer+event_*_unset) (event) +[new Observer([data])](#new_Observer_new) (constructor)
+[.set([path], data)](#Observer+set)
+[.patch([path], data)](#Observer+patch)
+[.unset([path])](#Observer+unset)
+[.get([path])](#Observer+get) ⇒ \*
+[.clear()](#Observer+clear)
+[.on(name, callback, [scope], [once])](#EventEmitter+on) ⇒ [EventHandler](#EventHandler)
+[.once(name, callback, [scope])](#EventEmitter+once) ⇒ [EventHandler](#EventHandler)
+[.emit(name, [...args])](#EventEmitter+emit)
+[.off([name], [callback], [scope])](#EventEmitter+off)
+[[path]:set (value, old)](#Observer+event_[path]_set) (event)
+[*:set (path, value, old)](#Observer+event_*_set) (event)
+[[path]:unset (old)](#Observer+event_[path]_unset) (event)
+[*:unset (path, old)](#Observer+event_*_unset) (event)
diff --git a/other/tmpl/sig-link.hbs b/other/tmpl/sig-link.hbs index 0731d9e..336f75a 100644 --- a/other/tmpl/sig-link.hbs +++ b/other/tmpl/sig-link.hbs @@ -12,6 +12,5 @@ {{#if @suffix}} {{@suffix}}{{/if~}} {{{@depClose}~}} {{~/sig}}{{/if~}} -{{#if virtual}}*{{/if}}{{#with (parentObject)}}{{#if virtual}}*{{/if~}}{{/with~}} -{{{' '}}} +{{#if virtual}}*{{/if}}{{#with (parentObject)}}{{#if virtual}}*{{/if~}}{{/with~}}
{{/unless}} diff --git a/package.json b/package.json index fb76b58..ecf8352 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mr-observer", - "version": "0.1.2", + "version": "0.1.3", "description": "An observer is a wrapper over JSON data, that provides an interface to know when data is changed, with a focus on performance and memory efficiency. For data-centric design, this provides a modular and robust architecture for applications with various data-dependent parts: ui, real-time render, history undo/redo, real-time collaboration, and more. This pattern has been used for years in PlayCanvas Editor providing fast iteration and ease of development in a complex environment.", "type": "module", "main": "src/index.js",