diff options
| author | jmoenig <jens@moenig.org> | 2013-08-06 13:02:09 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-08-06 13:02:09 +0200 |
| commit | a9a8ad6c9df9ad65e6b197b2170d5f5f39fbd323 (patch) | |
| tree | aa309fccdb996a8700558ac7608833754002ee5b | |
| parent | ade3c6ab48df170af5ed82124aed9dd620773a8a (diff) | |
| download | snap-yow-a9a8ad6c9df9ad65e6b197b2170d5f5f39fbd323.tar.gz snap-yow-a9a8ad6c9df9ad65e6b197b2170d5f5f39fbd323.zip | |
Morphic: mouseEnterDragging fix
and a few cosmetic changes due to JSLint's latest nitpickings
| -rwxr-xr-x | history.txt | 1 | ||||
| -rw-r--r-- | morphic.js | 18 |
2 files changed, 10 insertions, 9 deletions
diff --git a/history.txt b/history.txt index eb45ef4..f8cdc4a 100755 --- a/history.txt +++ b/history.txt @@ -1850,3 +1850,4 @@ ______ 130805 ------ * Polish translation, yay!! Thanks, Witek Kranas! +* Morphic: mouseEnterDragging fix @@ -1035,7 +1035,7 @@ /*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio, FileList, getBlurredShadowSupport*/ -var morphicVersion = '2013-June-28'; +var morphicVersion = '2013-August-06'; var modules = {}; // keep track of additional loaded modules var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug @@ -9635,7 +9635,7 @@ HandMorph.prototype.processMouseMove = function (event) { if (old.mouseLeave) { old.mouseLeave(); } - if (old.mouseLeaveDragging && this.mouseButton) { + if (old.mouseLeaveDragging && myself.mouseButton) { old.mouseLeaveDragging(); } } @@ -9645,7 +9645,7 @@ HandMorph.prototype.processMouseMove = function (event) { if (newMorph.mouseEnter) { newMorph.mouseEnter(); } - if (newMorph.mouseEnterDragging && this.mouseButton) { + if (newMorph.mouseEnterDragging && myself.mouseButton) { newMorph.mouseEnterDragging(); } } @@ -9788,18 +9788,18 @@ HandMorph.prototype.processDrop = function (event) { } function parseImgURL(html) { - var url = '', - i, + var iurl = '', + idx, c, start = html.indexOf('<img src="'); if (start === -1) {return null; } start += 10; - for (i = start; i < html.length; i += 1) { - c = html[i]; + for (idx = start; idx < html.length; idx += 1) { + c = html[idx]; if (c === '"') { - return url; + return iurl; } - url = url.concat(c); + iurl = iurl.concat(c); } return null; } |
