Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
krausest committed Nov 21, 2017
1 parent 0ad4b17 commit f7bc8f3
Show file tree
Hide file tree
Showing 71 changed files with 84 additions and 83 deletions.
2 changes: 1 addition & 1 deletion angular-v1.6.3-keyed/src/home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class HomeController {
};
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion angular-v5.0.0-keyed/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class AppComponent implements AfterViewChecked {
}
swapRows() {
startMeasure("swapRows");
if (this.data.length > 10) {
if (this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion angular-v5.0.0-no-zone-keyed/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class AppComponent implements AfterViewChecked {
}
swapRows() {
startMeasure("swapRows");
if (this.data.length > 10) {
if (this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion angular-v5.0.0-non-keyed/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class AppComponent implements AfterViewChecked {
}
swapRows() {
startMeasure("swapRows");
if (this.data.length > 10) {
if (this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion aurelia-v1.1.5-non-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
var b = this.data[998];
this.data.splice(1, 1, b);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ final class Store {

def swapRows() = {
val buffer = data.get
if (buffer.length >= 10) {
if (buffer.length > 998) {
val row1 = buffer(1)
val row998 = buffer(998)
buffer(998) = row1
Expand Down
2 changes: 1 addition & 1 deletion bobril-v8.0.1-keyed/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion choo-v6.5.0-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = function(state, emitter) {
});

emitter.on('swapRows', function() {
if (state.data.length > 10) {
if (state.data.length > 998) {
const a = state.data[1];
state.data[1] = state.data[998];
state.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion cyclejs-dom-v19.3.0-non-keyed/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Operations = {
Clear: state => ({items: [], selected: null}),
SwapRows: state => {
let d = state.items.splice(0);
if(d.length > 10) {
if(d.length > 998) {
var a = d[1];
d[1] = d[998];
d[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion datum-v0.10.0-keyed/src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var HomeViewModel = function () {

this.swapRows = new Datum.Click(function () {
startMeasure("swapRows");
if (this.data.length > 10) {
if (this.data.length > 998) {
var a = this.data[1];
var b = this.data.splice(998, 1, a)[0];
this.data.splice(1, 1, b);
Expand Down
2 changes: 1 addition & 1 deletion dio-v8.0.3-keyed/src/utils.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const update = (data) => {

export const swapRows = (data) => {
const newData = [...data];
if (newData.length > 10) {
if (newData.length > 998) {
let temp = newData[1];
newData[1] = newData[998];
newData[998] = temp;
Expand Down
2 changes: 1 addition & 1 deletion dio-v8.0.3-non-keyed/src/utils.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const update = (data) => {

export const swapRows = (data) => {
const newData = [...data];
if (newData.length > 10) {
if (newData.length > 998) {
let temp = newData[1];
newData[1] = newData[998];
newData[998] = temp;
Expand Down
2 changes: 1 addition & 1 deletion dojo2-v0.2.0-keyed/src/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class Store {
}

public swapRows() {
if (this._data.length > 10) {
if (this._data.length > 998) {
const row = this._data[1];
this._data[1] = this._data[998];
this._data[998] = row;
Expand Down
2 changes: 1 addition & 1 deletion dojo2-v0.2.0-non-keyed/src/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class Store {
}

public swapRows() {
if (this._data.length > 10) {
if (this._data.length > 998) {
const row = this._data[1];
this._data[1] = this._data[998];
this._data[998] = row;
Expand Down
2 changes: 1 addition & 1 deletion elm-v0.18.0-keyed/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ update msg model =
( { model | rows = [] }, Cmd.none )

Swap ->
if List.length model.rows >= 10 then
if List.length model.rows > 998 then
let
arr =
model.rows
Expand Down
2 changes: 1 addition & 1 deletion ember-v2.16.2-keyed/app/services/rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default Ember.Service.extend({
},
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
if(this.data.length > 998) {
let d1 = this.data[1];
let d998 = this.data[998];

Expand Down
2 changes: 1 addition & 1 deletion etch-v0.12.5-keyed/src/Store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion etch-v0.12.5-non-keyed/src/Store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class Glimmerjs extends Component {

swapRows() {
startMeasure("swapRows");
if(this.rows.data.length > 10) {
if(this.rows.data.length > 998) {
let data = this.rows.data;
let d1 = data[1];
data[1] = data[998];
Expand Down
2 changes: 1 addition & 1 deletion gruu-v1.7.3-non-keyed/src/Store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Store {
this.selected = undefined
}
swapRows () {
if(this.data.length > 10) {
if(this.data.length > 998) {
const a = this.data[1]
this.data[1] = this.data[998]
this.data[998] = a
Expand Down
2 changes: 1 addition & 1 deletion hyperapp-v0.16.0-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const actions = {
},

swapRows: state => {
if (state.data.length <= 10) {
if (state.data.length <= 998) {
return state
}

Expand Down
2 changes: 1 addition & 1 deletion hyperapp-v0.16.0-non-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const actions = {
},

swapRows: state => {
if (state.data.length <= 10) {
if (state.data.length <= 998) {
return state
}

Expand Down
2 changes: 1 addition & 1 deletion hyperhtml-v2.1.2-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class Store {
this.selected = null;
}
swapRows() {
if (this.data.length > 10) {
if (this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion hyperhtml-v2.1.2-non-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class Store {
this.selected = null;
}
swapRows() {
if (this.data.length > 10) {
if (this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion inferno-v3.10.1-keyed/src/store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion inferno-v3.10.1-non-keyed/src/store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion ivi-v0.9.1-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const store = createStore(
case "clear":
return { data: mut([]), selected: null };
case "swaprows":
if (data.length > 10) {
if (data.length > 998) {
const a = data[1];
data[1] = data[998];
data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion knockout-v3.4.1-keyed/src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var HomeViewModel = function () {
self.swapRows = function () {
startMeasure("swapRows");
var tmp = self.data();
if (tmp.length > 10) {
if (tmp.length > 998) {
var a = tmp[1];
tmp[1] = tmp[998];
tmp[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion lit-html-v0.7.1-non-keyed/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class MainElement extends HTMLElement {
}
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
if(this.data.length > 998) {
var tmp = this.data[1];
this.data[1] = this.data[998];
this.data[998] = tmp;
Expand Down
2 changes: 1 addition & 1 deletion maquette-v3.0.1-keyed/src/store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Store.prototype = {
},

swapRows: function() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion marionette-v3.5.1-domapi-keyed/src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Store = Bb.Collection.extend({
},
swapRows() {
startMeasure("swapRows");
if (this.length > 10) {
if (this.length > 998) {
const a = this.models[1];
this.models[1] = this.models[998];
this.models[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion marionette-v3.5.1-keyed/src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const Store = Bb.Collection.extend({
},
swapRows() {
startMeasure("swapRows");
if (this.length > 10) {
if (this.length > 998) {
const a = this.models[1];
this.models[1] = this.models[998];
this.models[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion marko-v4.5.6-keyed/src/main/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = {
startMeasure("swapRows");
let data = this.state.data;

if(data.length > 10) {
if(data.length > 998) {
var a = data[1];
data[1] = data[998];
data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion mithril-v1.1.1-keyed/src/store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var Store = {
this.selected = undefined;
},
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion moon-v0.11.0/src/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ new Moon({
},
swap: function() {
var data = this.get("data");
if (data.length > 10) {
if (data.length > 998) {
startMeasure("swap");
var tmp = data[1];
data[1] = data[998];
Expand Down
2 changes: 1 addition & 1 deletion nx-v1.0.0-beta.2.0.1-keyed/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function setup (elem, state) {

state.swapRows = function swapRows () {
timer.startMeasure('swapRows')
if (10 < state.rows.length) {
if (998 < state.rows.length) {
const item1 = state.rows[1]
const item998 = state.rows[998]
state.rows[1] = item998
Expand Down
2 changes: 1 addition & 1 deletion nx-v1.0.0-beta.2.0.1-non-keyed/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function setup (elem, state) {

state.swapRows = function swapRows () {
timer.startMeasure('swapRows')
if (10 < state.rows.length) {
if (998 < state.rows.length) {
const item1 = state.rows[1]
const item998 = state.rows[998]
state.rows[1] = item998
Expand Down
2 changes: 1 addition & 1 deletion petit-dom-v0.0.12-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion pico-dom-v1.0.0-keyed/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Store.prototype = {
this.selected = null
},
swapRows: function() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1]
this.data[1] = this.data[998]
this.data[998] = a
Expand Down
2 changes: 1 addition & 1 deletion plastiq-v1.33.0-keyed/src/entry/store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion polymer-v2.0.0-non-keyed/src/main-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h1>Polymer v2.0.0</h1>
}
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
if(this.data.length > 998) {
var tmp = this.data[1];
this.set(["data", 1], this.data[998]);
this.set(["data", 998], tmp);
Expand Down
2 changes: 1 addition & 1 deletion preact-v8.2.6-keyed/src/Store.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Store {
this.selected = undefined;
}
swapRows() {
if(this.data.length > 10) {
if(this.data.length > 998) {
var a = this.data[1];
this.data[1] = this.data[998];
this.data[998] = a;
Expand Down
2 changes: 1 addition & 1 deletion ractive-edge-keyed/src/main.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var ractive = window.r = new Ractive({
});
this.on('swapRows', function (event) {
startMeasure("swapRows");
if(this.get('data').length > 10) {
if(this.get('data').length > 998) {
var a = this.get('data')[1];
this.splice('data', 1, 1, this.get('data')[998]);
this.splice('data', 998, 1, a);
Expand Down
2 changes: 1 addition & 1 deletion ractive-edge-non-keyed/src/main.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var ractive = window.r = new Ractive({
});
this.on('swapRows', function (event) {
startMeasure("swapRows");
if(this.get('data').length > 10) {
if(this.get('data').length > 998) {
var a = this.get('data')[1];
this.set('data[1]', this.get('data')[998]);
this.set('data[998]', a);
Expand Down
Loading

0 comments on commit f7bc8f3

Please sign in to comment.