| OLD | NEW |
| (Empty) | |
| 1 <!-- |
| 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 |
| 11 <!-- |
| 12 |
| 13 The `iron-location` element manages binding to and from the current URL. |
| 14 |
| 15 iron-location is the first, and lowest level element in the Polymer team's |
| 16 routing system. This is a beta release of iron-location as we continue work |
| 17 on higher level elements, and as such iron-location may undergo breaking |
| 18 changes. |
| 19 |
| 20 #### Properties |
| 21 |
| 22 When the URL is: `/search?query=583#details` iron-location's properties will be: |
| 23 |
| 24 - path: `'/search'` |
| 25 - query: `'query=583'` |
| 26 - hash: `'details'` |
| 27 |
| 28 These bindings are bidirectional. Modifying them will in turn modify the URL. |
| 29 |
| 30 iron-location is only active while it is attached to the document. |
| 31 |
| 32 #### Links |
| 33 |
| 34 While iron-location is active in the document it will intercept clicks on links |
| 35 within your site, updating the URL pushing the updated URL out through the |
| 36 databinding system. iron-location only intercepts clicks with the intent to |
| 37 open in the same window, so middle mouse clicks and ctrl/cmd clicks work fine. |
| 38 |
| 39 You can customize this behavior with the `urlSpaceRegex`. |
| 40 |
| 41 #### Dwell Time |
| 42 |
| 43 iron-location protects against accidental history spamming by only adding |
| 44 entries to the user's history if the URL stays unchanged for `dwellTime` |
| 45 milliseconds. |
| 46 |
| 47 @demo demo/index.html |
| 48 |
| 49 --> |
| 50 </head><body><script src="iron-location-extracted.js"></script></body></html> |
| OLD | NEW |