This commit is contained in:
nightwing 2015-01-04 02:13:28 +04:00
commit 0054bb8794
7 changed files with 165 additions and 87 deletions

View file

@ -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) {

View file

@ -126,7 +126,7 @@ var AbapHighlightRules = function() {
{token : "string", regex : "`", next : "start"},
{defaultToken : "string"}
]
}
};
};
oop.inherits(AbapHighlightRules, TextHighlightRules);