lupine.web 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.web",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",
@@ -1,8 +1,5 @@
1
1
  import { VNode } from '../jsx';
2
- import { bindAttributes } from './bind-attributes';
3
- import { bindLinks } from './bind-links';
4
2
  import { mountInnerComponent, mountOuterComponent } from './mount-component';
5
- import { renderComponent } from './render-component';
6
3
  import { replaceInnerhtml } from './replace-innerhtml';
7
4
 
8
5
  export const bindRef = (type: any, newProps: any, el: Element) => {
@@ -64,6 +64,9 @@ function renderAttribute(type: any, props: any, jsxNodes: any) {
64
64
  // <div data-refid={ref}>
65
65
  // then data-refid can be located:
66
66
  // ref.$(`.class-name[data-refid=${ref.id}]`)
67
+ if (props._id) {
68
+ console.warn('This component reference is used more than once and will have binding issues: ', props);
69
+ }
67
70
  if (props['data-refid'] && props['data-refid'].id) {
68
71
  props['data-refid'] = props['data-refid'].id;
69
72
  }