Evan Czaplicki
f636b7576f
Merge pull request #409 from maxsnew/keepWhen
...
Change semantics of keepWhen/dropWhen.
2014-01-28 06:18:04 -08:00
Evan Czaplicki
007ea7126f
Get rid of isClicked
...
It can be argued that everything should be derived from isDown and
position (the two real facts about the mouse), so maybe that is a
direction to go from here.
2014-01-27 12:29:52 +01:00
Max New
50bc5a493f
Remove old JS dropWhen/keepWhen
2014-01-20 11:22:06 -06:00
Evan Czaplicki
4e5ba54934
Revert "Merge pull request #462 from jvoigtlaender/Mouse.isClicked-correction"
...
This reverts commit 26b7fc617f
, reversing
changes made to 9be0abd018
.
2014-01-20 17:09:34 +01:00
jvoigtlaender
c3c12b929b
change Mouse.isClicked to adhere to its documentation
2014-01-20 07:46:49 +01:00
Christian Stork
61b2cd6e40
Fix Keyboard.lastPressed to signal repeated keys
2013-12-04 13:40:13 +01:00
Evan Czaplicki
704da021b0
Fix "dropped" frames for text updates ( #224 , #339 ) using @timthelion's insights in #350
...
* Change the implementation of `notify` so that it does not have a
return value any more.
* Get rid of the only remaning use of the return value of `notify` in
the `every` function.
* Have a "lock" on each round to ensure that no library or runtime
calls `notify` synchronously, causing an update to happen half way
through another update, ultimately leading to a dropped frame.
2013-11-18 17:23:40 +01:00
Evan Czaplicki
cb0183ba46
Fix error with request
function
2013-10-24 18:33:38 +02:00
Evan Czaplicki
f43af4bbd1
Use faster loop for floatList
and adjust indentation
2013-10-17 13:40:28 -04:00
Evan Czaplicki
24da7112a9
Drop repeats by default on arrows, directions, wasd, and isDown
2013-10-14 13:33:48 -04:00
Evan Czaplicki
a29a1fd558
Fix mouse and touch tracking for embedded Elm programs, #291
2013-10-13 19:10:02 -04:00
Evan Czaplicki
ffd088bfae
cosmetic: switch to 4 spaces as indent
2013-10-13 17:58:52 -04:00
Evan Czaplicki
f34b150a5e
cosmetic: indent "properly"
2013-10-13 17:40:59 -04:00
Max Goldstein
c99d7d72d5
Preallocate array per Spirros.
...
Need to specify indices explictly, as push will not overwrite the initialized
values but instead appends on to the end.
2013-10-07 21:35:49 -04:00
Max Goldstein
4a93227f0b
Random.floatList : Signal Int -> Signal [Float]
...
This version has been updated to work with b40f2958d4
.
2013-10-06 10:26:28 -04:00
Evan Czaplicki
3459672725
merges was right biased by accident
2013-09-30 02:08:51 -07:00
Evan Czaplicki
b40f2958d4
New convention for storing module values, fixes bug
...
Before it was not possible to add values to anything except leafs of
the namespace structure.
2013-09-30 01:32:27 -07:00
Evan Czaplicki
2cb4fd8973
Merge branch 'dev' of https://github.com/evancz/Elm into dev
2013-09-30 01:06:33 -07:00
Evan Czaplicki
dcbe2fc245
Change the format of module instantiation
...
Currently, it's only possible to create modules at the leafs of the
namespace structure. This CL lifts that restriction.
Get rid of "use strict" in many cases.
2013-09-30 00:44:31 -07:00
Max Goldstein
0f182c653d
Fix runtime error with Random.float.
...
Rename JS function to avoid conflicting with reserved words, as enforced by
commit 40ea6df24
(found with git bisect).
2013-09-29 10:36:41 -04:00
John P Mayer Jr
6821a350f4
fixed obvious === bug
2013-08-15 05:55:48 +00:00
John P Mayer Jr
b9abf862dd
fixed wierd keyboard stuff by factoring out keypress events
2013-08-15 05:24:44 +00:00
Evan Czaplicki
79c6b3b39e
Merge pull request #194 from A1kmm/dev-fix-mousemove-handler-for-touch
...
Fix a typo bug in the onblur handler for Touch.
2013-08-08 13:54:01 -07:00
Evan Czaplicki
0a55674939
Fix timestamp which was undefined before
2013-08-04 12:24:50 -07:00
Evan Czaplicki
56e897c9d1
Signal.delay was undefined, use correct reference
2013-08-04 11:15:52 -07:00
Andrew Miller
1f3ba5ca35
Fix a typo bug in the onblur handler for Touch.
2013-07-15 14:11:02 +12:00
evancz
9a40249e05
Fix the confusion with "Cons" and "Nil" in issue #176 .
...
Also add the ExplicitList expression.
2013-06-20 21:25:10 -07:00
evancz
13dacfd8f9
Stop a bunch of keyboard signals from firing too many events.
2013-06-16 14:20:15 -07:00
evancz
3e45d8e9ce
Fix bug in setting headers.
2013-06-09 11:13:03 -07:00
evancz
b30482a38f
Get timers to detach themselves when a swap occurs.
2013-06-03 00:19:48 -07:00
evancz
90cf4218a8
Switch to a custom way of attaching event listeners that makes it easier to detach them if necessary.
2013-06-02 23:46:02 -07:00
evancz
6ddb826332
First draft addition of hot-swapping. Clean up Init.js a bit as well.
2013-05-30 18:41:43 -07:00
evancz
ab5ded36a6
Report success for all 2xx response statuses.
2013-05-23 19:06:14 +02:00
evancz
5714764aba
Make sure that empty requests are not sent.
2013-05-23 11:11:24 +02:00
evancz
7ece842af5
Make closure compiler happy.
2013-05-22 01:06:12 +02:00
evancz
96e719401d
Change the Json
API and change the name of WebSocket.open
to not clash with open
as a keyword.
2013-05-21 11:04:38 +02:00
evancz
d31acc5c9d
Minor bug fixes in RTS and libraries.
2013-05-21 10:03:51 +02:00
evancz
706d706e3f
Simplify the Input API for basic widgets.
2013-05-17 23:00:25 +02:00
evancz
8823b012d1
Merge branch 'dev' of https://github.com/evancz/Elm into dev
2013-05-17 22:46:55 +02:00
evancz
5044724cda
Improve documentation a bit and get split
working properly.
2013-05-17 12:49:31 +02:00
Evan Czaplicki
df73a090e4
Merge pull request #152 from perplexes/fix_http_json
...
Fix HTTP/JSON
2013-05-17 02:53:32 -07:00
evancz
a9400dbc63
Clean up some documentation and make some minor API tweaks.
2013-05-16 22:10:50 +02:00
Colin Curtin
acd2b61e00
Merge remote-tracking branch 'evan/dev' into lint
...
Conflicts:
runtime/Init.js
runtime/Render/Collage.js
2013-05-14 09:18:38 -07:00
evancz
7ce550901c
Move to initializing with three different functions: fullscreen, node, and worker.
...
Add code to ensure that mouse and touch positions are reported relative to the embedded Elm node.
Remove the elm_ prefix from the events for logging, redirects, and title changes. Should be silo'd by the `elm` and not escape into the global event namespace.
2013-05-14 16:29:06 +02:00
Colin Curtin
0685425ace
"float" is a reserved word in JS
2013-05-11 17:38:07 -07:00
Colin Curtin
98c0269edc
Moar whitespace.
2013-05-11 17:15:45 -07:00
Colin Curtin
2b90d0eb9e
Whitespace, semicolons, lint etc. No functional changes.
2013-05-11 13:42:45 -07:00
Colin Curtin
8db9ccf57e
Fix HTTP/JSON
...
* Elm Http: Signal (lift) was not imported
* Native Http: "Waiting" was not a string.
* Elm Json: find* weren't using the Json Object type (which find was expecting)
* Native Json: Utils was not imported (to use Tuple2)
2013-05-11 13:35:20 -07:00
evancz
d8067fd8c4
Fix foldp
2013-05-06 02:41:22 -07:00
evancz
a8df7eb28a
Minor bug fixes
2013-05-06 02:30:50 -07:00