@polymer/iron-form-element-behavior
Advanced tools
Comparing version 3.0.0-pre.4 to 3.0.0-pre.6
import '../../polymer/polymer.js'; | ||
import { IronFormElementBehavior } from '../iron-form-element-behavior.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
import '../iron-form-element-behavior.js'; | ||
@@ -21,5 +20,5 @@ /** | ||
behaviors: [ | ||
IronFormElementBehavior | ||
Polymer.IronFormElementBehavior | ||
] | ||
}); |
import '../../polymer/polymer.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
@@ -4,0 +3,0 @@ /** |
import '../polymer/polymer.js'; | ||
import { Element } from '../polymer/polymer-element.js'; | ||
/** | ||
Polymer.IronFormElementBehavior enables a custom element to be included | ||
in an `iron-form`. | ||
export const IronFormElementBehavior = { | ||
Events `iron-form-element-register` and `iron-form-element-unregister` are not fired on Polymer 2.0. | ||
@demo demo/index.html | ||
@polymerBehavior | ||
*/ | ||
/** | ||
@license | ||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
*/ | ||
Polymer.IronFormElementBehavior = { | ||
properties: { | ||
@@ -55,3 +71,3 @@ /** | ||
attached: Element ? null : function() { | ||
attached: Polymer.Element ? null : function() { | ||
// Note: the iron-form that this element belongs to will set this | ||
@@ -62,3 +78,3 @@ // element's _parentForm property when handling this event. | ||
detached: Element ? null : function() { | ||
detached: Polymer.Element ? null : function() { | ||
if (this._parentForm) { | ||
@@ -65,0 +81,0 @@ this._parentForm.fire('iron-form-element-unregister', {target: this}); |
{ | ||
"name": "@polymer/iron-form-element-behavior", | ||
"flat": true, | ||
"version": "3.0.0-pre.4", | ||
"version": "3.0.0-pre.6", | ||
"description": "Enables a custom element to be included in an iron-form", | ||
@@ -21,8 +21,8 @@ "contributors": [ | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.4" | ||
"@polymer/polymer": "^3.0.0-pre.6" | ||
}, | ||
"devDependencies": { | ||
"@polymer/iron-component-page": "^3.0.0-pre.4", | ||
"@polymer/paper-styles": "^3.0.0-pre.4", | ||
"wct-browser-legacy": "0.0.1-pre.10", | ||
"@polymer/iron-component-page": "^3.0.0-pre.6", | ||
"@polymer/paper-styles": "^3.0.0-pre.6", | ||
"wct-browser-legacy": "0.0.1-pre.11", | ||
"@webcomponents/webcomponentsjs": "^1.0.0" | ||
@@ -29,0 +29,0 @@ }, |
import '../../polymer/polymer.js'; | ||
import { IronFormElementBehavior } from '../iron-form-element-behavior.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
import '../iron-form-element-behavior.js'; | ||
@@ -18,4 +17,4 @@ /** | ||
behaviors: [ | ||
IronFormElementBehavior | ||
Polymer.IronFormElementBehavior | ||
] | ||
}); |
import '../../polymer/polymer.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
@@ -4,0 +3,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21261
211