Skip to content

Commit f7bc8f3

Browse files
committed
1 parent 0ad4b17 commit f7bc8f3

File tree

71 files changed

+84
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+84
-83
lines changed

angular-v1.6.3-keyed/src/home.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class HomeController {
8585
};
8686
swapRows() {
8787
startMeasure("swapRows");
88-
if(this.data.length > 10) {
88+
if(this.data.length > 998) {
8989
var a = this.data[1];
9090
this.data[1] = this.data[998];
9191
this.data[998] = a;

angular-v5.0.0-keyed/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class AppComponent implements AfterViewChecked {
144144
}
145145
swapRows() {
146146
startMeasure("swapRows");
147-
if (this.data.length > 10) {
147+
if (this.data.length > 998) {
148148
var a = this.data[1];
149149
this.data[1] = this.data[998];
150150
this.data[998] = a;

angular-v5.0.0-no-zone-keyed/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class AppComponent implements AfterViewChecked {
151151
}
152152
swapRows() {
153153
startMeasure("swapRows");
154-
if (this.data.length > 10) {
154+
if (this.data.length > 998) {
155155
var a = this.data[1];
156156
this.data[1] = this.data[998];
157157
this.data[998] = a;

angular-v5.0.0-non-keyed/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class AppComponent implements AfterViewChecked {
144144
}
145145
swapRows() {
146146
startMeasure("swapRows");
147-
if (this.data.length > 10) {
147+
if (this.data.length > 998) {
148148
var a = this.data[1];
149149
this.data[1] = this.data[998];
150150
this.data[998] = a;

aurelia-v1.1.5-non-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class Store {
6565
this.selected = undefined;
6666
}
6767
swapRows() {
68-
if(this.data.length > 10) {
68+
if(this.data.length > 998) {
6969
var a = this.data[1];
7070
var b = this.data[998];
7171
this.data.splice(1, 1, b);

binding.scala-v10.0.1-keyed/js/src/main/scala/com/thoughtworks/binding/benchmark/Store.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ final class Store {
127127

128128
def swapRows() = {
129129
val buffer = data.get
130-
if (buffer.length >= 10) {
130+
if (buffer.length > 998) {
131131
val row1 = buffer(1)
132132
val row998 = buffer(998)
133133
buffer(998) = row1

bobril-v8.0.1-keyed/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Store {
6868
this.selected = undefined;
6969
}
7070
swapRows() {
71-
if(this.data.length > 10) {
71+
if(this.data.length > 998) {
7272
var a = this.data[1];
7373
this.data[1] = this.data[998];
7474
this.data[998] = a;

choo-v6.5.0-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function(state, emitter) {
3636
});
3737

3838
emitter.on('swapRows', function() {
39-
if (state.data.length > 10) {
39+
if (state.data.length > 998) {
4040
const a = state.data[1];
4141
state.data[1] = state.data[998];
4242
state.data[998] = a;

cyclejs-dom-v19.3.0-non-keyed/src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Operations = {
3838
Clear: state => ({items: [], selected: null}),
3939
SwapRows: state => {
4040
let d = state.items.splice(0);
41-
if(d.length > 10) {
41+
if(d.length > 998) {
4242
var a = d[1];
4343
d[1] = d[998];
4444
d[998] = a;

datum-v0.10.0-keyed/src/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var HomeViewModel = function () {
8787

8888
this.swapRows = new Datum.Click(function () {
8989
startMeasure("swapRows");
90-
if (this.data.length > 10) {
90+
if (this.data.length > 998) {
9191
var a = this.data[1];
9292
var b = this.data.splice(998, 1, a)[0];
9393
this.data.splice(1, 1, b);

dio-v8.0.3-keyed/src/utils.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const update = (data) => {
3636

3737
export const swapRows = (data) => {
3838
const newData = [...data];
39-
if (newData.length > 10) {
39+
if (newData.length > 998) {
4040
let temp = newData[1];
4141
newData[1] = newData[998];
4242
newData[998] = temp;

dio-v8.0.3-non-keyed/src/utils.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const update = (data) => {
3636

3737
export const swapRows = (data) => {
3838
const newData = [...data];
39-
if (newData.length > 10) {
39+
if (newData.length > 998) {
4040
let temp = newData[1];
4141
newData[1] = newData[998];
4242
newData[998] = temp;

dojo2-v0.2.0-keyed/src/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class Store {
133133
}
134134

135135
public swapRows() {
136-
if (this._data.length > 10) {
136+
if (this._data.length > 998) {
137137
const row = this._data[1];
138138
this._data[1] = this._data[998];
139139
this._data[998] = row;

dojo2-v0.2.0-non-keyed/src/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class Store {
133133
}
134134

135135
public swapRows() {
136-
if (this._data.length > 10) {
136+
if (this._data.length > 998) {
137137
const row = this._data[1];
138138
this._data[1] = this._data[998];
139139
this._data[998] = row;

elm-v0.18.0-keyed/src/Main.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ update msg model =
265265
( { model | rows = [] }, Cmd.none )
266266

267267
Swap ->
268-
if List.length model.rows >= 10 then
268+
if List.length model.rows > 998 then
269269
let
270270
arr =
271271
model.rows

ember-v2.16.2-keyed/app/services/rows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default Ember.Service.extend({
8686
},
8787
swapRows() {
8888
startMeasure("swapRows");
89-
if(this.data.length > 10) {
89+
if(this.data.length > 998) {
9090
let d1 = this.data[1];
9191
let d998 = this.data[998];
9292

etch-v0.12.5-keyed/src/Store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Store {
5050
this.selected = undefined;
5151
}
5252
swapRows() {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
var a = this.data[1];
5555
this.data[1] = this.data[998];
5656
this.data[998] = a;

etch-v0.12.5-non-keyed/src/Store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Store {
5050
this.selected = undefined;
5151
}
5252
swapRows() {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
var a = this.data[1];
5555
this.data[1] = this.data[998];
5656
this.data[998] = a;

glimmer-v0.8.0-keyed/src/ui/components/my-table/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class Glimmerjs extends Component {
7878

7979
swapRows() {
8080
startMeasure("swapRows");
81-
if(this.rows.data.length > 10) {
81+
if(this.rows.data.length > 998) {
8282
let data = this.rows.data;
8383
let d1 = data[1];
8484
data[1] = data[998];

gruu-v1.7.3-non-keyed/src/Store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Store {
5050
this.selected = undefined
5151
}
5252
swapRows () {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
const a = this.data[1]
5555
this.data[1] = this.data[998]
5656
this.data[998] = a

hyperapp-v0.16.0-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const actions = {
109109
},
110110

111111
swapRows: state => {
112-
if (state.data.length <= 10) {
112+
if (state.data.length <= 998) {
113113
return state
114114
}
115115

hyperapp-v0.16.0-non-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const actions = {
109109
},
110110

111111
swapRows: state => {
112-
if (state.data.length <= 10) {
112+
if (state.data.length <= 998) {
113113
return state
114114
}
115115

hyperhtml-v2.1.2-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class Store {
121121
this.selected = null;
122122
}
123123
swapRows() {
124-
if (this.data.length > 10) {
124+
if (this.data.length > 998) {
125125
var a = this.data[1];
126126
this.data[1] = this.data[998];
127127
this.data[998] = a;

hyperhtml-v2.1.2-non-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class Store {
121121
this.selected = null;
122122
}
123123
swapRows() {
124-
if (this.data.length > 10) {
124+
if (this.data.length > 998) {
125125
var a = this.data[1];
126126
this.data[1] = this.data[998];
127127
this.data[998] = a;

inferno-v3.10.1-keyed/src/store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class Store {
6161
this.selected = undefined;
6262
}
6363
swapRows() {
64-
if(this.data.length > 10) {
64+
if(this.data.length > 998) {
6565
var a = this.data[1];
6666
this.data[1] = this.data[998];
6767
this.data[998] = a;

inferno-v3.10.1-non-keyed/src/store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class Store {
6161
this.selected = undefined;
6262
}
6363
swapRows() {
64-
if(this.data.length > 10) {
64+
if(this.data.length > 998) {
6565
var a = this.data[1];
6666
this.data[1] = this.data[998];
6767
this.data[998] = a;

ivi-v0.9.1-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const store = createStore(
5050
case "clear":
5151
return { data: mut([]), selected: null };
5252
case "swaprows":
53-
if (data.length > 10) {
53+
if (data.length > 998) {
5454
const a = data[1];
5555
data[1] = data[998];
5656
data[998] = a;

knockout-v3.4.1-keyed/src/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var HomeViewModel = function () {
7979
self.swapRows = function () {
8080
startMeasure("swapRows");
8181
var tmp = self.data();
82-
if (tmp.length > 10) {
82+
if (tmp.length > 998) {
8383
var a = tmp[1];
8484
tmp[1] = tmp[998];
8585
tmp[998] = a;

lit-html-v0.7.1-non-keyed/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class MainElement extends HTMLElement {
7878
}
7979
swapRows() {
8080
startMeasure("swapRows");
81-
if(this.data.length > 10) {
81+
if(this.data.length > 998) {
8282
var tmp = this.data[1];
8383
this.data[1] = this.data[998];
8484
this.data[998] = tmp;

maquette-v3.0.1-keyed/src/store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Store.prototype = {
7777
},
7878

7979
swapRows: function() {
80-
if(this.data.length > 10) {
80+
if(this.data.length > 998) {
8181
var a = this.data[1];
8282
this.data[1] = this.data[998];
8383
this.data[998] = a;

marionette-v3.5.1-domapi-keyed/src/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const Store = Bb.Collection.extend({
8989
},
9090
swapRows() {
9191
startMeasure("swapRows");
92-
if (this.length > 10) {
92+
if (this.length > 998) {
9393
const a = this.models[1];
9494
this.models[1] = this.models[998];
9595
this.models[998] = a;

marionette-v3.5.1-keyed/src/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Store = Bb.Collection.extend({
100100
},
101101
swapRows() {
102102
startMeasure("swapRows");
103-
if (this.length > 10) {
103+
if (this.length > 998) {
104104
const a = this.models[1];
105105
this.models[1] = this.models[998];
106106
this.models[998] = a;

marko-v4.5.6-keyed/src/main/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports = {
7474
startMeasure("swapRows");
7575
let data = this.state.data;
7676

77-
if(data.length > 10) {
77+
if(data.length > 998) {
7878
var a = data[1];
7979
data[1] = data[998];
8080
data[998] = a;

mithril-v1.1.1-keyed/src/store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var Store = {
5050
this.selected = undefined;
5151
},
5252
swapRows() {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
var a = this.data[1];
5555
this.data[1] = this.data[998];
5656
this.data[998] = a;

moon-v0.11.0/src/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ new Moon({
146146
},
147147
swap: function() {
148148
var data = this.get("data");
149-
if (data.length > 10) {
149+
if (data.length > 998) {
150150
startMeasure("swap");
151151
var tmp = data[1];
152152
data[1] = data[998];

nx-v1.0.0-beta.2.0.1-keyed/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function setup (elem, state) {
8181

8282
state.swapRows = function swapRows () {
8383
timer.startMeasure('swapRows')
84-
if (10 < state.rows.length) {
84+
if (998 < state.rows.length) {
8585
const item1 = state.rows[1]
8686
const item998 = state.rows[998]
8787
state.rows[1] = item998

nx-v1.0.0-beta.2.0.1-non-keyed/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function setup (elem, state) {
8181

8282
state.swapRows = function swapRows () {
8383
timer.startMeasure('swapRows')
84-
if (10 < state.rows.length) {
84+
if (998 < state.rows.length) {
8585
const item1 = state.rows[1]
8686
const item998 = state.rows[998]
8787
state.rows[1] = item998

petit-dom-v0.0.12-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Store {
5050
this.selected = undefined;
5151
}
5252
swapRows() {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
var a = this.data[1];
5555
this.data[1] = this.data[998];
5656
this.data[998] = a;

pico-dom-v1.0.0-keyed/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Store.prototype = {
6666
this.selected = null
6767
},
6868
swapRows: function() {
69-
if(this.data.length > 10) {
69+
if(this.data.length > 998) {
7070
var a = this.data[1]
7171
this.data[1] = this.data[998]
7272
this.data[998] = a

plastiq-v1.33.0-keyed/src/entry/store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Store {
5050
this.selected = undefined;
5151
}
5252
swapRows() {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
var a = this.data[1];
5555
this.data[1] = this.data[998];
5656
this.data[998] = a;

polymer-v2.0.0-non-keyed/src/main-element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h1>Polymer v2.0.0</h1>
119119
}
120120
swapRows() {
121121
startMeasure("swapRows");
122-
if(this.data.length > 10) {
122+
if(this.data.length > 998) {
123123
var tmp = this.data[1];
124124
this.set(["data", 1], this.data[998]);
125125
this.set(["data", 998], tmp);

preact-v8.2.6-keyed/src/Store.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Store {
5050
this.selected = undefined;
5151
}
5252
swapRows() {
53-
if(this.data.length > 10) {
53+
if(this.data.length > 998) {
5454
var a = this.data[1];
5555
this.data[1] = this.data[998];
5656
this.data[998] = a;

ractive-edge-keyed/src/main.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var ractive = window.r = new Ractive({
7676
});
7777
this.on('swapRows', function (event) {
7878
startMeasure("swapRows");
79-
if(this.get('data').length > 10) {
79+
if(this.get('data').length > 998) {
8080
var a = this.get('data')[1];
8181
this.splice('data', 1, 1, this.get('data')[998]);
8282
this.splice('data', 998, 1, a);

ractive-edge-non-keyed/src/main.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var ractive = window.r = new Ractive({
7676
});
7777
this.on('swapRows', function (event) {
7878
startMeasure("swapRows");
79-
if(this.get('data').length > 10) {
79+
if(this.get('data').length > 998) {
8080
var a = this.get('data')[1];
8181
this.set('data[1]', this.get('data')[998]);
8282
this.set('data[998]', a);

0 commit comments

Comments
 (0)