This commit is contained in:
XhmikosR 2015-04-23 09:17:14 +03:00
Родитель cf52f909d3
Коммит d0be556cd8
9 изменённых файлов: 61 добавлений и 33 удалений

2
dist/css/ratchet-theme-android.min.css поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
dist/css/ratchet.min.css поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

40
dist/js/ratchet.js поставляемый
Просмотреть файл

@ -420,6 +420,8 @@
options.container = options.container || options.transition ? document.querySelector('.content') : document.body;
var isFileProtocol = /^file:/.test(window.location.protocol);
for (key in bars) {
if (bars.hasOwnProperty(key)) {
options[key] = options[key] || document.querySelector(bars[key]);
@ -432,21 +434,25 @@
}
xhr = new XMLHttpRequest();
xhr.open('GET', options.url, true);
xhr.setRequestHeader('X-PUSH', 'true');
if (isFileProtocol) {
xhr.open('GET', options.url, false);
} else {
xhr.open('GET', options.url, true);
xhr.setRequestHeader('X-PUSH', 'true');
xhr.onreadystatechange = function () {
if (options._timeout) {
clearTimeout(options._timeout);
}
if (xhr.readyState === 4) {
if (xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
xhr.onreadystatechange = function () {
if (options._timeout) {
clearTimeout(options._timeout);
}
}
};
if (xhr.readyState === 4) {
if (xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
}
}
};
}
if (!PUSH.id) {
cacheReplace({
@ -466,6 +472,14 @@
xhr.send();
if (isFileProtocol) {
if (xhr.status === 0 || xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
}
}
if (xhr.readyState && !options.ignorePush) {
cachePush();
}

2
dist/js/ratchet.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
docs/assets/css/docs.min.css поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
docs/dist/css/ratchet-theme-android.min.css поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

2
docs/dist/css/ratchet.min.css поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

40
docs/dist/js/ratchet.js поставляемый
Просмотреть файл

@ -420,6 +420,8 @@
options.container = options.container || options.transition ? document.querySelector('.content') : document.body;
var isFileProtocol = /^file:/.test(window.location.protocol);
for (key in bars) {
if (bars.hasOwnProperty(key)) {
options[key] = options[key] || document.querySelector(bars[key]);
@ -432,21 +434,25 @@
}
xhr = new XMLHttpRequest();
xhr.open('GET', options.url, true);
xhr.setRequestHeader('X-PUSH', 'true');
if (isFileProtocol) {
xhr.open('GET', options.url, false);
} else {
xhr.open('GET', options.url, true);
xhr.setRequestHeader('X-PUSH', 'true');
xhr.onreadystatechange = function () {
if (options._timeout) {
clearTimeout(options._timeout);
}
if (xhr.readyState === 4) {
if (xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
xhr.onreadystatechange = function () {
if (options._timeout) {
clearTimeout(options._timeout);
}
}
};
if (xhr.readyState === 4) {
if (xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
}
}
};
}
if (!PUSH.id) {
cacheReplace({
@ -466,6 +472,14 @@
xhr.send();
if (isFileProtocol) {
if (xhr.status === 0 || xhr.status === 200) {
success(xhr, options);
} else {
failure(options.url);
}
}
if (xhr.readyState && !options.ignorePush) {
cachePush();
}

2
docs/dist/js/ratchet.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны