mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Update eustia
This commit is contained in:
3
.eustia
3
.eustia
@@ -2,6 +2,5 @@ module.exports = {
|
||||
files: 'src/**/*.es6',
|
||||
ignore: '**/Info/defInfo.es6',
|
||||
output: 'src/util.js',
|
||||
format: 'commonjs',
|
||||
namespace: 'eruda'
|
||||
format: 'commonjs'
|
||||
};
|
||||
@@ -1,7 +0,0 @@
|
||||
evalCss = function (css)
|
||||
{
|
||||
var style = document.createElement('style');
|
||||
style.textContent = css;
|
||||
style.type = 'text/css';
|
||||
document.body.appendChild(style);
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
loadJs = function (url, cb)
|
||||
{
|
||||
var script = document.createElement('script');
|
||||
script.src = url;
|
||||
script.onload = function ()
|
||||
{
|
||||
var isNotLoaded = script.readyState &&
|
||||
script.readyState != "complete" &&
|
||||
script.readyState != "loaded";
|
||||
|
||||
cb && cb(!isNotLoaded);
|
||||
};
|
||||
document.body.appendChild(script);
|
||||
};
|
||||
@@ -1,14 +1,12 @@
|
||||
_('Emitter');
|
||||
|
||||
orientation = {};
|
||||
|
||||
Emitter.mixin(orientation);
|
||||
Emitter.mixin(exports);
|
||||
|
||||
window.addEventListener('orientationchange', function ()
|
||||
{
|
||||
setTimeout(function ()
|
||||
{
|
||||
orientation.emit('change');
|
||||
exports.emit('change');
|
||||
}, 150);
|
||||
}, false);
|
||||
|
||||
|
||||
2177
src/util.js
2177
src/util.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user