From 0ede79afdf125720019d1d32c169a1c40e579d78 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Tue, 13 Oct 2015 11:48:59 -0700 Subject: [PATCH] Add docs --- src/lib/dom-api-classlist.html | 6 +++ src/lib/dom-api-event.html | 10 +++++ src/lib/dom-api-flush.html | 9 ++++- ...=> dom-api-observe-distributed-nodes.html} | 18 ++++++--- ...tation.html => dom-api-observe-nodes.html} | 19 ++++++--- src/lib/dom-api.html | 40 ++++++++++++++++--- src/mini/shady.html | 7 +--- 7 files changed, 87 insertions(+), 22 deletions(-) rename src/lib/{dom-api-mutation-content.html => dom-api-observe-distributed-nodes.html} (74%) rename src/lib/{dom-api-mutation.html => dom-api-observe-nodes.html} (88%) diff --git a/src/lib/dom-api-classlist.html b/src/lib/dom-api-classlist.html index 7b405ad186..d4ce7b7f38 100644 --- a/src/lib/dom-api-classlist.html +++ b/src/lib/dom-api-classlist.html @@ -14,6 +14,12 @@ var DomApi = Polymer.DomApi.ctor; + /** + * DomApi.classList allows maniuplation of `classList` compatible with + * Polymer.dom. The general usage is + * `Polymer.dom(node).classList.method(arguments)` where methods and arguments + * match native DOM. + */ Object.defineProperty(DomApi.prototype, 'classList', { get: function() { if (!this._classList) { diff --git a/src/lib/dom-api-event.html b/src/lib/dom-api-event.html index fff14f980a..d13480809f 100644 --- a/src/lib/dom-api-event.html +++ b/src/lib/dom-api-event.html @@ -15,6 +15,16 @@ var DomApi = Polymer.DomApi.ctor; var Settings = Polymer.Settings; + + /** + * DomApi.Event allows maniuplation of events compatible with + * the scoping concepts in Shadow DOM and compatible with both Shady DOM + * and Shadow DOM. The general usage is + * `Polymer.dom(event).property`. The `path` property returns `event.path` + * matching Shadow DOM. The `rootTarget` property returns the first node + * in the `path` and is the original event target. The `localTarget` property + * matches event.target under Shadow DOM and is the scoped event target. + */ DomApi.Event = function(event) { this.event = event; }; diff --git a/src/lib/dom-api-flush.html b/src/lib/dom-api-flush.html index 1ecc1821e6..82449b92ac 100644 --- a/src/lib/dom-api-flush.html +++ b/src/lib/dom-api-flush.html @@ -9,7 +9,14 @@ -->