| Index: third_party/polymer/v1_0/components-chromium/iron-location/iron-location.html
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-location/iron-location.html b/third_party/polymer/v1_0/components-chromium/iron-location/iron-location.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..44a5098d239984be8a2c41bd34bd9ee6b920d981
|
| --- /dev/null
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-location/iron-location.html
|
| @@ -0,0 +1,50 @@
|
| +<!--
|
| +@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
|
| +--><html><head><link rel="import" href="../polymer/polymer.html">
|
| +
|
| +<!--
|
| +
|
| +The `iron-location` element manages binding to and from the current URL.
|
| +
|
| +iron-location is the first, and lowest level element in the Polymer team's
|
| +routing system. This is a beta release of iron-location as we continue work
|
| +on higher level elements, and as such iron-location may undergo breaking
|
| +changes.
|
| +
|
| +#### Properties
|
| +
|
| +When the URL is: `/search?query=583#details` iron-location's properties will be:
|
| +
|
| + - path: `'/search'`
|
| + - query: `'query=583'`
|
| + - hash: `'details'`
|
| +
|
| +These bindings are bidirectional. Modifying them will in turn modify the URL.
|
| +
|
| +iron-location is only active while it is attached to the document.
|
| +
|
| +#### Links
|
| +
|
| +While iron-location is active in the document it will intercept clicks on links
|
| +within your site, updating the URL pushing the updated URL out through the
|
| +databinding system. iron-location only intercepts clicks with the intent to
|
| +open in the same window, so middle mouse clicks and ctrl/cmd clicks work fine.
|
| +
|
| +You can customize this behavior with the `urlSpaceRegex`.
|
| +
|
| +#### Dwell Time
|
| +
|
| +iron-location protects against accidental history spamming by only adding
|
| +entries to the user's history if the URL stays unchanged for `dwellTime`
|
| +milliseconds.
|
| +
|
| +@demo demo/index.html
|
| +
|
| + -->
|
| +</head><body><script src="iron-location-extracted.js"></script></body></html>
|
|
|