Commit Graph

21 Commits

Author SHA1 Message Date
Stephan Hochhaus
4462c18964 Deps.autorun becomes Tracker.autorun
Updated wordplay and parties example to use Tracker.autorun instead of
legacy Deps
2014-10-13 16:27:05 -07:00
David Greenspan
48264ccafd Use preferred helper style in docs,apps,packages 2014-09-25 14:56:15 -07:00
David Greenspan
b1a9457be1 More wordplay IE 8 fixes 2013-12-17 18:44:26 -08:00
David Greenspan
e61e4487f9 Make wordplay example not depend on String.trim
Not present in IE 8
2013-12-17 18:27:17 -08:00
David Greenspan
84b123ef44 don't use triple stache for HTML attrs in examples
This syntax has a bug where it relies on having html5-tokenizer on the client, code which was written for the server (and uses Function.bind, defineGetter, etc.).

The plan is to deprecate/remove this syntax anyway, i.e. not allow
you to say `<x {{{attrs}}}>` and then have `attrs` evaluate to a string like
'key1="value1" key2="value2"' at runtime.  Constructing these strings is error-prone and likely to be insecure.

Instead, you'll have your choice of double-stache in an attribute value, with or without quotes (`<a b={{c}}>`, or `<a b="{{c}} {{d}}"`, or even `<a b={{c}}-{{d}}>`), or double-stache at the top level of a tag, as in `<a {{b}}>`, in which case `b` must be either a dictionary of attribute names and values or a string containing at most a single attribute name (e.g. "selected" or "").
2013-11-12 19:15:47 -08:00
Matt DeBergalis
5889adea90 Various wordplay fixes:
* Don't add blank lines to the dictionary.
 * Fix broken word length check in `score_word`.
 * Prevent event handler from submitting blank words.
2013-09-25 12:14:58 -07:00
David Greenspan
a18a92e65f Deps.run => Deps.autorun 2013-03-11 12:17:39 -07:00
David Greenspan
b9c3e1fa30 port examples 2013-03-08 12:50:46 -08:00
Naomi Seyfer
d3d267d95b Deleted dead code from wordplay 2013-02-05 16:15:51 -08:00
David Glasser
27d3073660 Make Meteor.autosubscribe a deprecated alias for Meteor.autorun.
Instead of a general client-side sub de-duping mechanism (which mostly existed
for the sake of autosubscribe, and causes issues with server-driven
unsubscribes), make Meteor.subscribe explicitly aware of reactivity.

Expose an "invalidated" flag on Meteor.deps.Context.

Guarantee that invalidation callbacks from different contexts will not be
interleaved at flush time. This has the implication that if you do

   context1.onInvalidate(function () {
     context2.invalidate();
   });

and this is the only way to invalidate context2, then context2's invalidation
callbacks will not be called until after *ALL* of context1's callbacks are
called. This allows us to be sure that the "unsubscribe, unless autorun tried to
re-create an identical sub" logic runs after the autorun function is rerun.
2013-01-15 17:07:03 -05:00
David Greenspan
b995d4751a add preserve-inputs package to skel and more examples 2012-09-28 13:23:30 -07:00
David Greenspan
2255c61383 more events({... changes 2012-08-23 12:17:53 -07:00
David Greenspan
1ca5357b28 new event map syntax 2012-08-22 19:41:06 -07:00
David Greenspan
379f608043 begin updating examples for new API 2012-08-22 18:14:15 -07:00
Jonathan Kingston
db2cf9eca1 Same as the other request but for wordplay. makes the squares have a pointer cursor :). 2012-04-11 14:53:23 +02:00
Nick Martin
e23b309cee Rework lobby logic to not add people with no names. Button to start is disabled until you enter a name. 2012-04-10 11:24:49 -07:00
Nick Martin
95cd398e07 Comments and cleanups. 2012-04-10 11:10:47 -07:00
Nick Martin
bba2469278 Declare and show a winner at the end of each game. 2012-04-10 11:10:47 -07:00
Nick Martin
3c638d8f75 Save a record of who was in the game so we can keep showing them when they are gone. 2012-04-10 11:10:47 -07:00
Nick Martin
b40c23ec90 Add keepalives and don't show idle players. 2012-04-10 11:10:47 -07:00
matt debergalis
13e494cc23 Wordplay example, in progress 2012-04-10 11:10:47 -07:00