@christianmurphy/reactive-elements
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -227,3 +227,3 @@ 'use strict'; | ||
Object.setPrototypeOf(_CustomElement, HTMLElement); | ||
function reactiveElements (elementName, ReactComponent, options) { | ||
function reactiveElements(elementName, ReactComponent, options) { | ||
function create(parent, props) { | ||
@@ -256,3 +256,3 @@ var element = React.createElement(ReactComponent, props); | ||
var observer = new MutationObserver(function () { | ||
registerElement(elementName, self); | ||
reactiveElements(elementName, self); | ||
}); | ||
@@ -259,0 +259,0 @@ observer.observe(self, { |
@@ -223,3 +223,3 @@ var ReactiveElements = (function (exports,React,ReactDOM) { | ||
Object.setPrototypeOf(_CustomElement, HTMLElement); | ||
function reactiveElements (elementName, ReactComponent, options) { | ||
function reactiveElements(elementName, ReactComponent, options) { | ||
function create(parent, props) { | ||
@@ -252,3 +252,3 @@ var element = React.createElement(ReactComponent, props); | ||
var observer = new MutationObserver(function () { | ||
registerElement(elementName, self); | ||
reactiveElements(elementName, self); | ||
}); | ||
@@ -255,0 +255,0 @@ observer.observe(self, { |
{ | ||
"name": "@christianmurphy/reactive-elements", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -5,3 +5,3 @@ import * as utils from './utils'; | ||
export default function(elementName, ReactComponent, options) { | ||
export default function reactiveElements(elementName, ReactComponent, options) { | ||
function create(parent, props) { | ||
@@ -26,3 +26,3 @@ var element = React.createElement(ReactComponent, props); | ||
const observer = new MutationObserver(() => { | ||
registerElement(elementName, self); | ||
reactiveElements(elementName, self); | ||
}); | ||
@@ -29,0 +29,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
428748