Skip to content

Commit 19adc9e

Browse files
committed
fix perf in IE9
1 parent 2ecdcff commit 19adc9e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

source/perf/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
title: Performance Comparisons
22
---
33

4-
# {{title}}
5-
64
## TodoMVC Benchmark
75

86
This is a benchmark found in the [webkit performance tests](https://github.com/WebKit/webkit/tree/master/PerformanceTests/DoYouEvenBench) based on the [TodoMVC](http://todomvc.com/) project. For each framework implementation, add 100 todos, toggle them one by one, then delete them one by one. In addition to the most popular MV* libraries, I also included [Om](https://github.com/swannodette/om) (a ClojureScript interface on top of React which boasts of performance) and [Ractive](http://www.ractivejs.org/) (very similar in terms of use case and API).

themes/vue/source/js/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
i = bars.length
4747
while (i--) {
4848
var bar = bars[i],
49-
t = bar.dataset.time,
49+
t = bar.getAttribute('data-time'),
5050
pct = ~~(t / max * 100)
5151
if (t == min) bar.className = 'bar min'
5252
bar.querySelector('.inner').style.width = pct + '%'

0 commit comments

Comments
 (0)