Bump mithril version and rely on its array flattening

This commit is contained in:
Steve Purcell 2014-07-28 09:33:23 +01:00
parent 782db7fba2
commit db0fd1e722
2 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.3.0/es5-shim.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/json2/20130526/json2.min.js"></script>
<![endif]-->
<script src="//cdnjs.cloudflare.com/ajax/libs/mithril/0.1.17/mithril.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/mithril/0.1.19/mithril.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

View file

@ -307,7 +307,7 @@
]),
m("section", [
m(".well", [
m("dl.dl-horizontal", _.flatten([
m("dl.dl-horizontal", [
m("dt", "Downloads"),
m("dd", [
pkg.downloads,
@ -323,13 +323,13 @@
m("dd", intersperse(pkg.dependencies.map(this.depLink), " / ")),
m("dt", "Needed by"),
m("dd", intersperse(ctrl.neededBy().map(this.packageLink), " / ")),
pkg.oldNames.length > 0 ? _.flatten([
pkg.oldNames.length > 0 ? [
m("dt", "Renamed from:"),
pkg.oldNames
// m("dt", "Old name needed by:"),
// m("dd", "TODO")
]) : []
]))
] : []
])
])
]),
m("section", [