mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
use underscore in skipList
This commit is contained in:
parent
daca484747
commit
e7ac8d6d4a
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue