Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
fix demo, remove polymer mention, v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rnicholus committed Aug 28, 2015
1 parent c23180d commit dfd2ede
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "file-input",
"version": "1.1.4",
"version": "2.0.0",
"authors": [
"Ray Nicholus"
],
"description": "polymer element for styling, normalizing, and generally fixing <input type=\"file\">",
"description": "web component for styling, normalizing, and generally fixing <input type=\"file\">",
"main": "element/*",
"license": "MIT",
"ignore": [
Expand Down
4 changes: 4 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ <h3>invalid selected files:</h3>
</body>

<script>
window.addEventListener('WebComponentsReady', function(e) {
document.body.removeAttribute('unresolved');
});

document.getElementsByTagName('file-input')[0].addEventListener('change', function(event) {
var valid = event.detail.valid,
invalid = event.detail.invalid,
Expand Down
2 changes: 1 addition & 1 deletion file-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ var fileInput = (function() {

// This is the only way (I am aware of) to reset an `<input type="file">`
// without removing it from the DOM. Removing it disconnects it
// from the CE/Polymer.
// from the CE.
resetInput = function(customEl) {
// create a form with a hidden reset button
var tempForm = document.createElement("form"),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Ray Nicholus"
},
"bugs": "https://github.com/garstasio/file-input/issues",
"description": "polymer element for styling, normalizing, and generally fixing <input type=\"file\">",
"description": "web component for styling, normalizing, and generally fixing <input type=\"file\">",
"devDependencies": {
"grunt": "0.4.x",
"grunt-contrib-jshint": "0.10.x",
Expand All @@ -22,5 +22,5 @@
"type" : "git",
"url" : "https://github.com/garstasio/file-input.git"
},
"version": "1.1.4"
"version": "2.0.0"
}

0 comments on commit dfd2ede

Please sign in to comment.