diff --git a/js/script.js b/js/script.js index 5bb3ddb..3634a8a 100755 --- a/js/script.js +++ b/js/script.js @@ -70,273 +70,213 @@ var quicksortUtil = (function (){ return quicksortUtil; })(); -var animationUtil= (function() { - var animationUtil = { - - }; - return animationUtil; -})(); - -// // Takes in a list of objects and then uses the compare function to determine the ordering. -// // It's expected that the comparsion functon returns -1 when a is less than b, 1 when a is greater than b, and 0 when they are equal. -// Array.prototype.quicksort= function (compare){ -// //One element is already sorted. -// if (this.length <= 1){ -// return this; -// } -// //Simple way to pick the pivot point. -// var pivotIndex = Math.floor(this.length/2); -// var pivot = this[pivotIndex]; - -// //Arrays holding the elements that have been seperated into less and more -// var less = []; -// var more = []; - -// //Simple for look using compare -// for(var i = 0; i