diff --git a/src/static/js/skiplist.js b/src/static/js/skiplist.js index 2132d8e3..58477acc 100644 --- a/src/static/js/skiplist.js +++ b/src/static/js/skiplist.js @@ -20,9 +20,10 @@ * limitations under the License. */ -var Ace2Common = require('./ace2_common'); +var Ace2Common = require('./ace2_common'), + _ = require('./underscore'); + var noop = Ace2Common.noop; -var extend = Ace2Common.extend; function SkipList() { @@ -324,8 +325,9 @@ function SkipList() /* The skip-list contains "entries", JavaScript objects that each must have a unique "key" property that is a string. -*/ - extend(this, { + */ + var self = this; + _.extend(this, { length: function() { return numNodes;