From 4b98351e5077d92afafdcb40f1831e229365cea3 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Sat, 25 Sep 2010 10:14:55 +0200 Subject: [PATCH] fix requireJS --- src/ace/mode/MatchingBraceOutdent.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ace/mode/MatchingBraceOutdent.js b/src/ace/mode/MatchingBraceOutdent.js index 4e9aa7e7..455ff1df 100644 --- a/src/ace/mode/MatchingBraceOutdent.js +++ b/src/ace/mode/MatchingBraceOutdent.js @@ -5,7 +5,9 @@ * @license LGPLv3 * @author Fabian Jakobs */ -require.def("ace/mode/MatchingBraceOutdent", [], function() { +require.def("ace/mode/MatchingBraceOutdent", + ["ace/Range"], + function(Range) { var MatchingBraceOutdent = function() {}; @@ -30,7 +32,7 @@ var MatchingBraceOutdent = function() {}; if (!openBracePos || openBracePos.row == row) return 0; var indent = this.$getIndent(doc.getLine(openBracePos.row)); - doc.replace(new ace.Range(row, 0, row, column-1), indent); + doc.replace(new Range(row, 0, row, column-1), indent); return indent.length - (column-1); };