Permalink
Browse files

whitespace

  • Loading branch information...
1 parent cfe6d59 commit 8e665a5c44d681e96960f889d892f73a634e71ab @xaviershay committed Dec 28, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 jquery.enumerable.js
View
@@ -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);

0 comments on commit 8e665a5

Please sign in to comment.