third_party/angular/meetingtracks/public/js/angular-cache-2.0.0-rc.1.js
/**
             * @class BinaryHeap
             * @desc BinaryHeap implementation of a priority queue.
             * @param {Function} weightFunc Function that returns the value that should be used for node value comparison.
             * @example
             * angular.module('app').controller(function (BinaryHeap) {
             *      var bHeap = new BinaryHeap(function (x) {
             *          return x.value;
             *      });
             * );
             */
@class BinaryHeap
@desc BinaryHeap implementation of a priority queue.
@param {Function} weightFunc Function that returns the value that should be used for node value comparison.
@class BinaryHeap @desc BinaryHeap implementation of a priority queue . @param { Function } weightFunc Function that returns the value that should be used for node value comparison .
function BinaryHeap(weightFunc) {
                if (weightFunc && !angular.isFunction(weightFunc)) {
                    throw new Error('BinaryHeap(weightFunc): weightFunc: must be a function!');
                }
                weightFunc = weightFunc || function (x) {
                    return x;
                };
                this.weightFunc = weightFunc;
                this.heap = [];
            }
function BinaryHeap ( weightFunc ) { if ( weightFunc && ! angular . isFunction ( weightFunc ) ) { throw new Error ( 'BinaryHeap(weightFunc): weightFunc: must be a function!' ) ; } weightFunc = weightFunc || function ( x ) { return x ; } ; this . weightFunc = weightFunc ; this . heap = [ ] ; }
@class BinaryHeap
 @desc BinaryHeap implementation of a priority queue.
@class BinaryHeap @desc BinaryHeap implementation of a priority queue .