diff options
author | Matthias Bartelmeß <mba@fourplusone.de> | 2012-03-27 11:44:21 +0200 |
---|---|---|
committer | Matthias Bartelmeß <mba@fourplusone.de> | 2012-03-27 11:44:21 +0200 |
commit | e7ac8d6d4a890f4b9fe88dbd8f04427937f4bd19 (patch) | |
tree | 4682e20829b51e3b4e9ae06bb311ab25fd764a67 /src/static | |
parent | daca4847470f74063eb20ac898ab805310dad7bf (diff) | |
download | etherpad-lite-e7ac8d6d4a890f4b9fe88dbd8f04427937f4bd19.zip |
use underscore in skipList
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/skiplist.js | 10 |
1 files changed, 6 insertions, 4 deletions
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; |