Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

whitespace

  • Loading branch information...
commit 8e665a5c44d681e96960f889d892f73a634e71ab 1 parent cfe6d59
@xaviershay authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 jquery.enumerable.js
View
5 jquery.enumerable.js
@@ -1,5 +1,5 @@
(function ( $ ) {
- $.collect = function (enumerable, callback) {
+ $.collect = function(enumerable, callback) {
validateCallback(callback);
var result = [];
@@ -13,7 +13,7 @@
return $.collect(this, callback);
}
- $.inject = function (enumerable, initialValue, callback) {
+ $.inject = function(enumerable, initialValue, callback) {
validateCallback(callback);
var accumulator = initialValue;
@@ -38,6 +38,7 @@
return $.sum(this);
}
+ // Private methods
function validateCallback(callback) {
if (!jQuery.isFunction(callback))
throw("callback needs to be a function, it was: " + callback);
Please sign in to comment.
Something went wrong with that request. Please try again.