Skip to content
Permalink
Browse files

Clean up import dependencies to avoid implicit dependencies.

Main intent here is to allow for piecemeal importing of features
(aka the unit tests).
  • Loading branch information
Ian MacLeod
Ian MacLeod committed Dec 2, 2014
1 parent 36dd5ee commit 1023c8a8cef1630753a99ba774c65054627b52c9
@@ -7,6 +7,7 @@
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
-->
<link rel="import" href="lang.html">
<script>

Base = {
@@ -7,6 +7,7 @@
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
-->
<link rel="import" href="../base.html">
<link rel="import" href="annotations.html">

<script>
@@ -7,6 +7,7 @@
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
-->
<link rel="import" href="../base.html">
<link rel="import" href="annotations.html">

<script>
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

// depends on `annotations` feature
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

/**
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

/*
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

/**
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<style>
/*******************************
Flex Layout
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

/**
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

(function() {
@@ -19,20 +21,20 @@
Setting a default property value that should have a side effect: To ensure
the side effect, an element must set a default value no sooner than
`created`; however, since `created` flows child to host, this is before the
`created`; however, since `created` flows child to host, this is before the
host has had a chance to set a property value on the child. The `ready`
method solves this problem since it's called host to child.
Dom distribution: To support reprojection efficiently, it's important to
Dom distribution: To support reprojection efficiently, it's important to
distribute from host to child in one shot. The `attachedCallback` mostly
goes in the desired order except for elements that are in dom to start; in
this case, all children are attached before the host element. Ready also
addresses this case since it's guaranteed to be called host to child.
*/

// TODO(sorvell): simply loading this feature incurs a small cost since it
// hooks attachedCallback. A feature hook at this lifecycle method would
// TODO(sorvell): simply loading this feature incurs a small cost since it
// hooks attachedCallback. A feature hook at this lifecycle method would
// allow users to opt out.

// TODO(sorvell): monkey patch for now.
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -29,9 +31,9 @@

_stampTemplate: function(template, target) {
var instance = this.instanceTemplate(template);
// identify host
// identify host
// NOTE: must use node tree, not element tree because Safari doesn't have
// a concept of elements in fragments
// a concept of elements in fragments
for (var e = instance.firstChild; e; e=e.nextSibling) {
e.host = this;
}
@@ -1,12 +1,14 @@
<!--
@license
Copyright (c) 2014 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
-->
<!--
@license
Copyright (c) 2014 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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -28,22 +30,22 @@
(node || this)[value ? 'setAttribute' : 'removeAttribute'](name, '');
},

toggleClass: function(name, bool, node) {
node = node || this;
if (arguments.length == 1) {
bool = !node.contains(name);
}
if (bool) {
node.classList.add(name);
} else {
node.classList.remove(name);
}
},

toggleClass: function(name, bool, node) {
node = node || this;
if (arguments.length == 1) {
bool = !node.contains(name);
}
if (bool) {
node.classList.add(name);
} else {
node.classList.remove(name);
}
},

attributeFollows: function(name, neo, old) {
if (old) {
old.removeAttribute(name);
}
}
if (neo) {
neo.setAttribute(name, '');
}
@@ -54,7 +56,7 @@
},

_queryHost: function(node) {
return node &&
return node &&
(node.host || (node.host = this._queryHost(node.parentNode)));
},

@@ -7,9 +7,10 @@
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
-->

<link rel="import" href="../base.html">
<!-- Includes observe-js!! -->
<script src="../../../observe-js/src/observe.js"></script>

<script>

(function() {
@@ -49,7 +50,7 @@
}, this);
},

// TODO(sorvell): the observers created here need cleanup or they will
// TODO(sorvell): the observers created here need cleanup or they will
// leak!!
// NOTE: we use `this._data` to avoid dealing with accessors.
_observeBinding: function(node, binding) {
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

(function() {
@@ -7,13 +7,15 @@
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
-->
<link rel="import" href="../base.html">

<script>

/* NOTE: This is a temporary implementation that proves the basic approach.
The next step is to integrate paths into the property system as real properties
*/
*/

(function() {

@@ -63,7 +65,7 @@
// binding.property == zizz
// if no e.detail.path, path === binding.path
// else replace binding.name with binding.path in e.detail.path
var path = e.detail.path ?
var path = e.detail.path ?
this._fixPath(binding.path, binding.property, e.detail.path) :
binding.path;
// TODO(sorvell): async here should not be necessary when we use real
@@ -114,7 +116,7 @@
if (effect.value === path) {
n[effect.name || 'textContent'] = value;
// path == item.stuff.count
// value == item.stuff
// value == item.stuff
// name == zizz
// calls effect n.notifyPath for zizz.count
} else if ((path.indexOf(effect.value) === 0) && n.notifyPath) {
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

(function() {
@@ -7,6 +7,9 @@
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
-->
<link rel="import" href="../base.html">
<link rel="import" href="../lang.html">

<script>

(function() {
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

/* Configures elemnent styles to stamped into ShadowDOM.
@@ -7,6 +7,8 @@
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
-->
<link rel="import" href="../base.html">

<script>

Base.addFeature({
@@ -7,7 +7,6 @@
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
-->
<link rel="import" href="lang.html">
<link rel="import" href="base.html">

<script>

0 comments on commit 1023c8a

Please sign in to comment.
You can’t perform that action at this time.