Code format & sort npm script params

This commit is contained in:
Donald 2018-09-11 14:27:15 +08:00
parent d60ea5e7cb
commit 29ebbeece6
5 changed files with 7 additions and 7 deletions

View file

@ -4,9 +4,9 @@
"description": "ScratchJr",
"scripts": {
"lint": "eslint src/**",
"watch": "webpack --watch --progress --mode=development --hide-modules",
"dev": "webpack --mode=development --hide-modules",
"build": "webpack --mode=production --hide-modules"
"watch": "webpack --mode=development --progress --hide-modules --watch",
"dev": "webpack --mode=development --progress --hide-modules",
"build": "webpack --mode=production --progress --hide-modules"
},
"author": "Massachusetts Institute of Technology",
"license": "BSD-3-Clause",

View file

@ -379,7 +379,7 @@ export default class ScratchJr {
}
}
static saveAndFlip (e){
static saveAndFlip (e) {
onHold = true;
ScratchJr.stopStripsFromTop(e);
ScratchJr.unfocus(e);

View file

@ -471,7 +471,7 @@ export default class Scripts {
getEncodableBlocks () {
var list = [];
var sc = this.sc;
for (var i =0; i < sc.childElementCount; i++){
for (var i = 0; i < sc.childElementCount; i++) {
var b = sc.childNodes[i].owner;
if (!b || b.type != 'block') {
continue;

View file

@ -20,7 +20,7 @@ export function gettingStartedMain () {
var urlvars = getUrlVars();
place = urlvars['place'];
document.ontouchmove = function (e){
document.ontouchmove = function (e) {
e.preventDefault();
};
}

View file

@ -66,7 +66,7 @@ export function preprocessAndLoadCss (baseUrl, url) {
const head = document.head;
let style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
if (style.styleSheet) {
style.styleSheet.cssText = cssData;
} else {
style.appendChild(document.createTextNode(cssData));