Skip to content

Commit

Permalink
Remove trailing blanks in source
Browse files Browse the repository at this point in the history
  • Loading branch information
codefrau committed Mar 23, 2017
1 parent e8316bb commit c8beef8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions squeak.js
Expand Up @@ -20,7 +20,7 @@
* THE SOFTWARE.
*/

"use strict";
"use strict";

//////////////////////////////////////////////////////////////////////////////
// these functions fake the Lively module and class system
Expand Down Expand Up @@ -178,9 +178,9 @@ function setupFullscreen(display, canvas, options) {
if (options.fullscreenCheckbox) options.fullscreenCheckbox.checked = fullscreen;
setTimeout(window.onresize, 0);
}

var checkFullscreen;

if (box.requestFullscreen) {
document.addEventListener(fullscreenEvent, function(){fullscreenChange(box == document[fullscreenElement]);});
checkFullscreen = function() {
Expand Down Expand Up @@ -605,7 +605,7 @@ function createSqueakDisplay(canvas, options) {
// * if touch ended within this time, generate click (down+up)
// * otherwise, start mousing with 2nd button
// When mousing, always generate a move event before down event so that
// mouseover eventhandlers in image work better
// mouseover eventhandlers in image work better
canvas.ontouchstart = function(evt) {
evt.preventDefault();
var e = touchToMouse(evt);
Expand Down Expand Up @@ -646,7 +646,7 @@ function createSqueakDisplay(canvas, options) {
evt.preventDefault();
var e = touchToMouse(evt);
switch (touch.state) {
case 'got1stFinger':
case 'got1stFinger':
touch.state = 'mousing';
touch.button = e.button = 0;
recordMouseEvent('mousemove', e, canvas, display, eventQueue, options);
Expand Down Expand Up @@ -675,7 +675,7 @@ function createSqueakDisplay(canvas, options) {
touch.state = 'idle';
recordMouseEvent('mouseup', e, canvas, display, eventQueue, options);
return;
case 'got1stFinger':
case 'got1stFinger':
touch.state = 'idle';
touch.button = e.button = 0;
recordMouseEvent('mousemove', e, canvas, display, eventQueue, options);
Expand Down Expand Up @@ -837,7 +837,7 @@ function createSqueakDisplay(canvas, options) {
image = buffer;
imageName = f.name;
}
if (loaded.length == files.length) {
if (loaded.length == files.length) {
if (image) {
SqueakJS.appName = imageName.slice(0, -6);
SqueakJS.runImage(image, imageName, display, options);
Expand Down Expand Up @@ -957,7 +957,7 @@ var loop; // holds timeout for main loop

SqueakJS.runImage = function(buffer, name, display, options) {
window.onbeforeunload = function(evt) {
var msg = SqueakJS.appName + " is still running";
var msg = SqueakJS.appName + " is still running";
evt.returnValue = msg;
return msg;
};
Expand Down
12 changes: 6 additions & 6 deletions vm.js
Expand Up @@ -842,7 +842,7 @@ Object.subclass('Squeak.Image',
New objects are only referenced by other objects' pointers, and thus can be garbage-collected
at any time by the Javascript GC.
A partial GC links new objects to support enumeration of new space.
Weak references are finalized by a full GC. A partial GC only finalizes young weak references.
*/
Expand Down Expand Up @@ -1608,7 +1608,7 @@ Object.subclass('Squeak.Image',
return this.formatVersion() | (wholeWord[0] & 0xFF000000);
},
loadImageSegment: function(segmentWordArray, outPointerArray) {
// The C VM creates real objects from the segment in-place.
// The C VM creates real objects from the segment in-place.
// We do the same, linking the new objects directly into old-space.
// The code below is almost the same as readFromBuffer() ... should unify
var data = new DataView(segmentWordArray.words.buffer),
Expand Down Expand Up @@ -1834,7 +1834,7 @@ Object.subclass('Squeak.Image',
classObj = null;
}
}
if (classObj) data.setUint32(pos, objToOop(classObj), littleEndian);
if (classObj) data.setUint32(pos, objToOop(classObj), littleEndian);
pos += 4;
classID++;
}
Expand Down Expand Up @@ -2204,7 +2204,7 @@ Object.subclass('Squeak.Object',
var fmt = this._format;
if (fmt > 4 || fmt === 2) return 0; //indexable fields only
if (fmt < 2) return this.pointersSize(); //fixed fields only
return this.sqClass.classInstSize();
return this.sqClass.classInstSize();
},
indexableSize: function(primHandler) {
var fmt = this._format;
Expand Down Expand Up @@ -4149,7 +4149,7 @@ Object.subclass('Squeak.Interpreter',
selectorObj = this.method.methodGetLiteral(byte & 0x0F);
} else if (byte >= 0xB0 ) {
selectorObj = this.specialSelectors[2 * (byte - 0xB0)];
} else if (byte <= 134) {
} else if (byte <= 134) {
// long form support demands we check the selector
var litIndex;
if (byte === 132) {
Expand Down Expand Up @@ -6519,7 +6519,7 @@ Object.subclass('Squeak.Primitives',
var micros = performance.now() * 1000 % 1000 | 0,
oldMillis = state.millis,
oldMicros = state.micros;
if (oldMillis > millis) millis = oldMillis; // rolled over previously
if (oldMillis > millis) millis = oldMillis; // rolled over previously
if (millis === oldMillis && micros < oldMicros) millis++; // roll over now
state.millis = millis;
state.micros = micros;
Expand Down

0 comments on commit c8beef8

Please sign in to comment.