Dev: Update eustia

This commit is contained in:
surunzi
2016-05-01 13:16:41 +08:00
parent 7429034b76
commit 21c1b13ea9
5 changed files with 1167 additions and 1040 deletions

View File

@@ -2,6 +2,5 @@ module.exports = {
files: 'src/**/*.es6',
ignore: '**/Info/defInfo.es6',
output: 'src/util.js',
format: 'commonjs',
namespace: 'eruda'
format: 'commonjs'
};

View File

@@ -1,7 +0,0 @@
evalCss = function (css)
{
var style = document.createElement('style');
style.textContent = css;
style.type = 'text/css';
document.body.appendChild(style);
};

View File

@@ -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);
};

View File

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

File diff suppressed because it is too large Load Diff