Comparing version 0.0.15 to 0.0.16
@@ -10,3 +10,3 @@ import VirtualNode from './VirtualNode'; | ||
element: Node; | ||
context: Component<any>[]; | ||
context: Component<IVirtualNodeProps>[]; | ||
rendered: boolean; | ||
@@ -17,7 +17,8 @@ constructor(props?: T, ...children: any[]); | ||
toNode(oldRoot?: any): Node; | ||
diffComponents(newRoot: Component<any>, oldRoot: Component<any>, oldElement: Node): any; | ||
diffVirtualNodes(newRoot: VirtualNode<any>, oldRoot: VirtualNode<any>, oldElement: HTMLElement): HTMLElement; | ||
static getContext(): Component<any>[]; | ||
static pushContext(): Component<any>[]; | ||
static popContext(): Component<any>[]; | ||
afterRender(node: Node): void; | ||
diffComponents(newRoot: Component<IVirtualNodeProps>, oldRoot: Component<IVirtualNodeProps>, oldElement: Node): any; | ||
diffVirtualNodes(newRoot: VirtualNode<IVirtualNodeProps>, oldRoot: VirtualNode<IVirtualNodeProps>, oldElement: HTMLElement): HTMLElement; | ||
static getContext(): Component<IVirtualNodeProps>[]; | ||
static pushContext(): Component<IVirtualNodeProps>[]; | ||
static popContext(): Component<IVirtualNodeProps>[]; | ||
} |
@@ -133,2 +133,3 @@ "use strict"; | ||
} | ||
this.afterRender(element); | ||
if (!element) { | ||
@@ -141,2 +142,4 @@ element = document.createComment('Empty Component'); | ||
}; | ||
Component.prototype.afterRender = function (node) { | ||
}; | ||
Component.prototype.diffComponents = function (newRoot, oldRoot, oldElement) { | ||
@@ -203,2 +206,5 @@ var innerRoot = Graph_1.default.peek(newRoot, 'root'); | ||
} | ||
if (newRoot.props.ref) { | ||
newRoot.props.ref(oldElement); | ||
} | ||
return oldElement; | ||
@@ -273,2 +279,5 @@ }; | ||
} | ||
if (newRoot.props.ref) { | ||
newRoot.props.ref(oldElement); | ||
} | ||
return oldElement; | ||
@@ -275,0 +284,0 @@ } |
{ | ||
"name": "cascade", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "A library for creating modern user interfaces.", | ||
@@ -5,0 +5,0 @@ "author": "Sean Johnson <sjohnson@sjohnsonaz.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111573
2838