Skip to content

Commit

Permalink
updated dependendcies
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Jul 3, 2019
1 parent 87dcdc3 commit cd4ceca
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 23 deletions.
15 changes: 11 additions & 4 deletions esm.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,11 +921,14 @@ var hyperHTML = (function (document) {
// Custom
var UID = '-' + Math.random().toFixed(6) + '%'; // Edge issue!

var UID_IE = false;

try {
if (!function (template, content, tabindex) {
return content in template && (template.innerHTML = '<p ' + tabindex + '="' + UID + '"></p>', template[content].childNodes[0].getAttribute(tabindex) == UID);
}(document.createElement('template'), 'content', 'tabindex')) {
UID = '_dt: ' + UID.slice(1, -1) + ';';
UID_IE = true;
}
} catch (meh) {}

Expand Down
15 changes: 11 additions & 4 deletions min.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@
"url": "https://github.com/WebReflection/hyperhtml/issues"
},
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"ascjs": "^3.0.1",
"basichtml": "^0.23.4",
"coveralls": "^3.0.3",
"basichtml": "^1.0.0",
"coveralls": "^3.0.4",
"drop-babel-typeof": "^1.0.3",
"istanbul": "^0.4.5",
"npm-dollar": "^2.1.3",
"rollup": "^1.10.1",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-node-resolve": "^4.2.3",
"npm-dollar": "^2.2.1",
"rollup": "^1.16.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-node-resolve": "^5.2.0",
"tressa": "^0.3.1",
"uglify-js": "^2.8.29"
"uglify-js": "^3.6.0"
},
"greenkeeper": {
"ignore": [
Expand Down
6 changes: 4 additions & 2 deletions test/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@

function update(render, items, events) {
return render`
<select onchange="${events.onchange}">${items.map(item => `
<option value="${item.ref}">
<select onchange="${events.onchange}">${items.map((item, i) => hyperHTML.wire(item)`
<option value="${item.ref}" selected="${i > 0}">
${item.title}
</option>
`)}</select>
`;
}

setInterval(update, 1000, render, items, events);
</script>
</html>
Loading

0 comments on commit cd4ceca

Please sign in to comment.