diff --git a/README.md b/README.md index 90aff0b..7a82a9f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![Build status](https://travis-ci.org/PolymerElements/iron-page-url.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-page-url) +[![Build status](https://travis-ci.org/PolymerElements/iron-location.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-location) -_[Demo and API docs](https://elements.polymer-project.org/elements/iron-page-url)_ +_[Demo and API docs](https://elements.polymer-project.org/elements/iron-location)_ -##<iron-page-url> +##<iron-location> -The `iron-page-url` element manages binding to and from the current URL. +The `iron-location` element manages binding to and from the current URL. -iron-page-url is the first, and lowest level element in the Polymer team's -routing system. This is a beta release of iron-page-url as we continue work -on higher level elements, and as such iron-page-url may undergo breaking +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-page-url's properties will be: +When the URL is: `/search?query=583#details` iron-location's properties will be: * path: `'/search'` * query: `'query=583'` @@ -36,21 +36,19 @@ When the URL is: `/search?query=583#details` iron-page-url's properties will be: These bindings are bidirectional. Modifying them will in turn modify the URL. -iron-page-url is only active while it is attached to the document. +iron-location is only active while it is attached to the document. #### Links -While iron-page-url is active in the document it will intercept clicks on 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-page-url only intercepts clicks with the intent to +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-page-url protects against accidental history spamming by only adding +iron-location protects against accidental history spamming by only adding entries to the user's history if the URL stays unchanged for `dwellTime` milliseconds. - - diff --git a/bower.json b/bower.json index 6616505..631d4fd 100644 --- a/bower.json +++ b/bower.json @@ -1,5 +1,5 @@ { - "name": "iron-page-url", + "name": "iron-location", "version": "0.7.3", "description": "Bidirectional data binding into the page's URL.", "private": true, @@ -11,13 +11,13 @@ "polymer", "routing" ], - "main": "iron-page-url.html", + "main": "iron-location.html", "repository": { "type": "git", - "url": "git://github.com/PolymerElements/iron-page-url.git" + "url": "git://github.com/PolymerElements/iron-location.git" }, "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/iron-page-url", + "homepage": "https://github.com/PolymerElements/iron-location", "ignore": [], "dependencies": { "polymer": "Polymer/polymer#^1.0.0" diff --git a/demo/index.html b/demo/index.html index 4ed6e3a..50f5ec7 100644 --- a/demo/index.html +++ b/demo/index.html @@ -11,11 +11,11 @@
-- iron-page-url won't add extraneous entries to the browser's history + iron-location won't add extraneous entries to the browser's history when changes come in quick succession.
- A new history entry will only be added if iron-page-url stays in + A new history entry will only be added if iron-location stays in the same state longer than dwellTime.