Commit Graph

349 Commits

Author SHA1 Message Date
David Greenspan
afc2759e01 glitchless add/remove/move
handles quick add-remove, double-move, and add-move

even seems to work with Sortable!
2013-08-16 15:50:21 -07:00
David Greenspan
5b801b027a fix quick add/remove
todo:
- make "move" use the same state object for smooth
moves of fading-in elements
- fix double-move of same element
2013-08-15 19:01:08 -07:00
Avital Oliver
b43024358e Resolve a bunch of xcxc's 2013-08-14 20:53:33 -07:00
David Greenspan
880b1a3488 don't lose "style" attribute if added mid-move 2013-08-13 19:24:04 -07:00
David Greenspan
3a80e20957 demo of new move animation strategy 2013-08-13 18:48:29 -07:00
Avital Oliver
435cd81c1d add xcxc 2013-08-12 20:02:49 -07:00
Avital Oliver
f5e36e1463 Remove unused line 2013-08-12 14:07:41 -07:00
Avital Oliver
c55cba9962 Rewrite {{#if}} to use DomRange (without support for else).
This allows {{#if}}s within {{#AnimatedList}} to be animated.
2013-08-12 14:07:29 -07:00
Avital Oliver
838cd5ce06 Fix removing a DomRange with more than one element.
Once you remove an element from the dom, it has no 'nextSibling'.
So don't remove elements while iterating over them.
2013-08-12 13:49:18 -07:00
Avital Oliver
b5e483f0f8 AnimatedList component can specify to only animate certain events 2013-08-12 13:48:53 -07:00
Avital Oliver
90aea32a75 AnimatedList is now a component 2013-08-12 13:48:51 -07:00
Avital Oliver
32fdb184fb minor reorg 2013-08-12 13:42:22 -07:00
Avital Oliver
e1e2bc19c8 add animation to leaderboard 2013-08-12 13:41:33 -07:00
Avital Oliver
aac5a0c5d8 Basic animation package 2013-08-12 13:41:33 -07:00
Avital Oliver
41e2b8ec76 whitespace 2013-08-06 15:21:25 -07:00
David Greenspan
cc2123f5a9 make isotope work 2013-08-05 17:33:27 -07:00
Avital Oliver
c0014dfda9 cleanup sortable code 2013-08-02 15:40:39 -07:00
David Glasser
44aa79120f Merge remote-tracking branch 'origin/shark' into shark 2013-08-01 17:17:56 -07:00
David Glasser
75a4cf3199 Merge branch 'devel' into shark
Conflicts:
	packages/templating/deftemplate.js
	packages/templating/package.js
	packages/templating/plugin/html_scanner.js
	packages/test-in-browser/driver.js
	tools/packages.js
2013-08-01 17:17:18 -07:00
David Greenspan
a588f82a01 add rank 2013-08-01 17:00:47 -07:00
David Greenspan
e85f20be8e style in example 2013-08-01 16:46:20 -07:00
Avital Oliver
11feb8800a first attempt at a working sortable list 2013-08-01 16:37:06 -07:00
David Greenspan
a1404b7a70 put .$ui.data() on elements in #each 2013-08-01 16:27:49 -07:00
Avital Oliver
a2436c62e5 add jquery ui sortable 2013-07-31 16:50:55 -07:00
Avital Oliver
9c1d3cd1d1 wip: a test case that breaks jquery ui sortable 2013-07-31 16:27:55 -07:00
David Greenspan
6434c40c39 comments 2013-07-31 13:12:53 -07:00
David Greenspan
316925d3ac remove old code 2013-07-31 12:48:49 -07:00
David Greenspan
b0e10cf3d5 DomRange 2013-07-31 12:48:17 -07:00
David Greenspan
2d1bc39604 make shark example just an each 2013-07-30 19:39:52 -07:00
Avital Oliver
8f4e563a86 fix leaderboard 2013-07-30 16:19:34 -07:00
Avital Oliver
92843948f6 cp: broken leaderboard 2013-07-30 16:12:29 -07:00
David Glasser
4e222d8e26 The standard app packages are brought in explicitly now.
.meteor/packages in new apps now contains "standard-app-packages", which implies
the standard set of packages like mongo-livedata. There is no special-casing in
initFromAppDir.  This line has been added to all the examples, etc.

There's a new concept of "upgraders".  "meteor run-upgrader app-packages" will
add standard-app-packages to the app, as well as all of the package in the app's
packages/ directory (an unrelated change since 0.6.4). This will be integrated
soon with "meteor update"; run-upgrader is essentially for testing.

project.add_package no longer adds packages that are already there.
2013-07-26 19:02:12 -07:00
David Glasser
ce16794cbb Push through on the Meteor.connect -> DDP.connect rename. 2013-07-25 18:54:42 -07:00
David Glasser
db51a3a14c Eliminate the "past" package.
This package was always included in apps, and even if it was possible to remove,
there wasn't a compelling story about when users would remove and replace
it. Plus, not all backwards-compatibility code could even live in it (eg, field
names of objects), so it was incomplete. It also introduced odd load order
constraints.

Instead, we introduce two conventions for backwards-compatibility code:

  - Special comments of the form "// XXX COMPAT WITH 0.6.4"
  - When feasible, put backwards-compatibility code in a file called
    "deprecated.js" in the relevant package.

This is documented at:
https://github.com/meteor/meteor/wiki/Meteor-Style-Guide#deprecated-code-and-backwards-compatibility

Additionally, removed some symbols that existed for backwards compatibility with
Meteor 0.4.0 (changes made 10 months ago): Meteor.is_client, Meteor.is_server,
and (in a method) this.is_simulation.
2013-07-25 18:54:42 -07:00
Emily Stark
bd7e0d768c Merge branch 'master' into devel
Conflicts:
	History.md
	docs/.meteor/release
	packages/mongo-livedata/.npm/package/npm-shrinkwrap.json
	packages/mongo-livedata/package.js
2013-07-19 16:05:29 -07:00
Emily Stark
614ab6a172 Update docs and examples to 0.6.4.1 2013-07-19 15:54:21 -07:00
David Glasser
e8af79e151 Update docs and examples to rc3. 2013-07-19 12:09:01 -07:00
David Glasser
abe145736d Update docs and examples to the RC. 2013-07-19 11:13:17 -07:00
David Greenspan
23fa59bd77 bodies inherit from UI.Body 2013-07-16 19:45:56 -07:00
David Greenspan
8018394b8b fixes; merge strings in Spacebars compilation 2013-07-16 17:59:49 -07:00
David Greenspan
332e1417f3 spacebars runs 2013-07-16 17:49:57 -07:00
David Greenspan
a116be3f83 spacebars WIP 2013-07-16 10:22:36 -07:00
David Greenspan
b94b3f7bd4 better example code 2013-07-11 17:32:09 -07:00
David Greenspan
be78be3a8b Each works on arrays and objects (no matching) 2013-07-11 15:56:45 -07:00
David Greenspan
3e9ae4573e Each/List refactoring in prep for reactive arrays 2013-07-11 13:56:30 -07:00
David Greenspan
d293760c40 clean up comp.insertBefore, support null in each 2013-07-11 11:00:39 -07:00
David Greenspan
70c2de783c optimize component.remove() 2013-07-10 06:57:58 -07:00
David Greenspan
4572631e7c minor optimizations 2013-07-10 06:47:48 -07:00
David Greenspan
fa4e20a935 reactive observing #each 2013-07-10 06:21:33 -07:00
David Greenspan
6a1dfd0e27 else case goes in UI.List
I figure it's central enough, might be animated.
Switching between items and else shouldn't be
a rebuild, and it definitely shouldn't affect the
cursor observer.
2013-07-10 06:06:56 -07:00