cleanup
This commit is contained in:
parent
eccc98b83b
commit
0054bb8794
7 changed files with 165 additions and 87 deletions
|
|
@ -9,9 +9,9 @@ define(function(require, exports, module) {
|
|||
"use strict";
|
||||
var dom = require("./dom");
|
||||
|
||||
exports.request = function (verb, url, data, callback) {
|
||||
exports.get = function (url, callback) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open(verb, url, true);
|
||||
xhr.open('GET', url, true);
|
||||
xhr.onreadystatechange = function () {
|
||||
//Do not explicitly handle errors, those should be
|
||||
//visible via console output in the browser.
|
||||
|
|
@ -19,11 +19,7 @@ exports.request = function (verb, url, data, callback) {
|
|||
callback(xhr.responseText);
|
||||
}
|
||||
};
|
||||
xhr.send(data);
|
||||
};
|
||||
|
||||
exports.get = function (url, callback) {
|
||||
this.request('GET', url, null, callback);
|
||||
xhr.send(null);
|
||||
};
|
||||
|
||||
exports.loadScript = function(path, callback) {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ var AbapHighlightRules = function() {
|
|||
{token : "string", regex : "`", next : "start"},
|
||||
{defaultToken : "string"}
|
||||
]
|
||||
}
|
||||
};
|
||||
};
|
||||
oop.inherits(AbapHighlightRules, TextHighlightRules);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue