summaryrefslogtreecommitdiff
path: root/src/static/js/ace.js
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-03-17 13:36:42 +0100
committerMatthias Bartelmeß <mba@fourplusone.de>2012-03-17 13:38:26 +0100
commite559df18ce7876c497bd6da64c3a1c0346f211f4 (patch)
tree71262d36dadb8ae745a4c985ec8610bf5b4c67da /src/static/js/ace.js
parent692e77b4e5a0322bc19cb49cc60a63146073e359 (diff)
downloadetherpad-lite-e559df18ce7876c497bd6da64c3a1c0346f211f4.zip
use underscore.js
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r--src/static/js/ace.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js
index 1306dba0..685d45df 100644
--- a/src/static/js/ace.js
+++ b/src/static/js/ace.js
@@ -29,6 +29,7 @@ Ace2Editor.registry = {
};
var hooks = require('./pluginfw/hooks');
+var _ = require('./underscore');
function Ace2Editor()
{
@@ -70,7 +71,7 @@ function Ace2Editor()
function doActionsPendingInit()
{
- $.each(actionsPendingInit, function(i,fn){
+ _.each(actionsPendingInit, function(fn,i){
fn()
});
actionsPendingInit = [];
@@ -87,7 +88,7 @@ function Ace2Editor()
'setUserChangeNotificationCallback', 'setAuthorInfo',
'setAuthorSelectionRange', 'callWithAce', 'execCommand', 'replaceRange'];
- $.each(aceFunctionsPendingInit, function(i,fnName){
+ _.each(aceFunctionsPendingInit, function(fnName,i){
var prefix = 'ace_';
var name = prefix + fnName;
editor[fnName] = pendingInit(function(){