Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed indentation.

  • Loading branch information...
commit 083672331a625ffc0dd6ef9db9c8b552a381d8ab 1 parent 3fd877b
@scottgonzalez scottgonzalez authored
Showing with 15 additions and 13 deletions.
  1. +15 −13 lib/JSLINQ.js
View
28 lib/JSLINQ.js
@@ -18,7 +18,9 @@
// The current version of JSLINQ being used
jslinq: "2.10",
- ToArray: function() { return this.items; },
+ ToArray: function() {
+ return this.items;
+ },
Where: function(clause) {
var newArray = [];
@@ -47,12 +49,12 @@
tempArray[tempArray.length] = this.items[i];
}
return new JSLINQ(
- tempArray.sort(function(a, b) {
- var x = clause(a);
- var y = clause(b);
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- })
- );
+ tempArray.sort(function(a, b) {
+ var x = clause(a);
+ var y = clause(b);
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ })
+ );
},
OrderByDescending: function(clause) {
var tempArray = [];
@@ -60,12 +62,12 @@
tempArray[tempArray.length] = this.items[i];
}
return new JSLINQ(
- tempArray.sort(function(a, b) {
- var x = clause(b);
- var y = clause(a);
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- })
- );
+ tempArray.sort(function(a, b) {
+ var x = clause(b);
+ var y = clause(a);
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ })
+ );
},
SelectMany: function(clause) {
var r = [];
Please sign in to comment.
Something went wrong with that request. Please try again.