Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

error

  • Loading branch information...
commit f314c8bd5b5591c507e67ffe4b674dfab43e5d24 1 parent d406fe0
@cho45 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tass.js
View
4 lib/tass.js
@@ -129,7 +129,7 @@ if (typeof document != 'undefined') (function () {
req.onreadystatechange = function (e) {
if (req.readyState != 4) return;
if (req.status == 200) {
- callback(res.responseText);
+ callback(req.responseText);
} else {
callback('/* [TASS] Error:' + req.status + ' ' + req.responseText + ' */');
}
@@ -141,7 +141,7 @@ if (typeof document != 'undefined') (function () {
for (var i = 0, it; (it = links[i]); i++) (function (link) {
if (link.rel != 'stylesheet/tass' || !link.href) return;
TASS.read(link.href, function (data) {
- TASS(req.responseText, function (css) {
+ TASS(data, function (css) {
var style = document.createElement('style');
style.type = 'text/css';
style.appendChild(document.createTextNode(css));
Please sign in to comment.
Something went wrong with that request. Please try again.