use underscore in skipList

This commit is contained in:
Matthias Bartelmeß 2012-03-27 11:44:21 +02:00
parent daca484747
commit e7ac8d6d4a

View file

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