Commit Graph

275 Commits

Author SHA1 Message Date
Sashko Stubailo
0ef65cc782 Clean up all dependencies 2015-07-30 17:25:38 -07:00
David Greenspan
2229fdfd25 Fix the fix to lexical scope
A little messy, but it will do.

The problem was with the test named "new #each binding lookup is
scoped to the template".  The walk up the parentView chain was
stopping at a contentBlock when it shouldn't.
2015-07-27 15:50:09 -07:00
David Greenspan
8f1523703a Failing test to be fixed by merging PR #4433 2015-07-27 15:01:52 -07:00
David Glasser
43b4b30205 Release PLUGINS-PREVIEW@1
This included removing some internal version constraints. It would be
nice if package A could say "use B@2.0.0" (when both have changed), but
when they're both in the release, we need to make a release that has a
B@2.0.0-rc in it, which doesn't match that constraint. Fortunately,
constraints aren't necessary within a release anyway.
2015-07-22 23:19:11 -07:00
Avital Oliver
4b3c5b930a Export clickIt utility from test-helpers package 2015-06-08 11:19:22 -07:00
David Greenspan
e8234592b0 Fix {{#each helper arg1 arg2}}
Broken by each-in support.

Now we just look to see if there's an `in` in the right position in order to tell the two cases apart.

We could consider deprecating this syntax in favor of the
(now-supported) {{#each (helper arg1 arg2)}}.
2015-05-13 10:40:58 -07:00
David Greenspan
7c05b7617e Failing test for #let re-rendering
#let currently re-renders the entire template when an argument
changes, so in this case:

```
<template name="spacebars_template_test_let_rerender">
  <input type="text" class="foo">
  {{#let y=x}}
    <span class="bar">{{y}}</span>
  {{/let}}
</template>
```

...when `x` changes, the input and span are destroyed and recreated.
2015-05-10 14:32:00 -07:00
Slava Kim
83611e9116 Merge branch 'spacebars-nested-exprs' into devel 2015-04-23 14:27:07 -07:00
Slava Kim
69671f756b Merge branch 'each-in' into devel 2015-04-23 14:24:33 -07:00
Slava Kim
b5642c3df8 More tests for nested expressions 2015-04-06 17:13:11 -07:00
Slava Kim
302f8c0181 Add end-to-end tests for nested expressions in Spacebars 2015-04-02 11:05:02 -07:00
Sashko Stubailo
9fe2f4b442 Merge pull request #4099 from meteor/template-subs-connection
Template subs connection
2015-04-01 17:30:11 -07:00
Sashko Stubailo
ac93ac5ed1 Fix up commit, add better docs 2015-04-01 17:03:53 -07:00
Slava Kim
55ca98c95c Add #each @index test 2015-04-01 16:42:00 -07:00
Slava Kim
c34d36986b Implement {{#let}} 2015-04-01 16:41:59 -07:00
Slava Kim
32d996e380 Reimplement the each foo in foos with the scope lookup
Remove the old implementation with modifying the data context,
implement it in the new way to keep the same data context but lookup
iterator in the scope.
2015-04-01 16:41:59 -07:00
Slava Kim
a50ae43b0d Add tests for new and old behaviors of #each 2015-04-01 16:39:09 -07:00
David Greenspan
53d8f53cac Fix #4097: error when View invalidated immediately
Bug introduced in 28c760e
2015-04-01 15:36:18 -07:00
David Glasser
4daaa76b12 METEOR@1.0.4 2015-03-17 13:06:07 -07:00
David Glasser
e7a9bdb507 1.0.4-rc.1 2015-03-09 16:20:50 -07:00
Sashko Stubailo
3752766ff5 Re-add helpful changes from f2840103ca 2015-03-09 14:21:38 -07:00
Sashko Stubailo
7b8714da6e Revert "Tests for Template.currentData and Template.parentData"
This reverts commit f2840103ca.

Conflicts:
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
2015-03-09 14:21:38 -07:00
David Glasser
af0469da35 Bump other packages to -rc.0 2015-03-05 22:54:07 -08:00
David Glasser
b2132ee983 De-flake template-level subs test
Fixes #3859.
2015-03-05 22:20:26 -08:00
Sashko Stubailo
86aeee4a4b Make subscription wait to ensure order 2015-03-03 21:56:17 -08:00
Sashko Stubailo
c0aab1e8d3 Template-level subscriptions 2015-02-11 18:10:33 -08:00
Sashko Stubailo
b3cb7a49f7 Merge branch 'devel' into windows-cr
Conflicts:
	packages/application-configuration/package.js
	packages/ctl-helper/package.js
	packages/ctl/package.js
	packages/dev-bundle-fetcher/package.js
	packages/follower-livedata/package.js
	packages/jquery/package.js
	packages/star-translate/package.js
	packages/test-in-browser/package.js
	tools/bundler.js
	tools/compiler.js
	tools/package-client.js
	tools/package-source.js
	tools/package-version-parser.js
	tools/server/boot.js
2015-02-04 13:56:54 -08:00
Sashko Stubailo
07dc77ee5c Mention that the test tests helpers as well 2015-01-28 11:28:55 -08:00
Avital Oliver
f2840103ca Tests for Template.currentData and Template.parentData
A recent change fixed the behavior of `Template.currentData`
and `Template.parentData` in event handlers and helpers.
These are tests for the new, correct behavior.

(The old behavior read the data of the template instance.
The new behavior read the data context around the DOM node
where the event or helper ran)
2015-01-26 16:44:50 -08:00
Sashko Stubailo
7ec339e5b8 Add tests for #3540 2015-01-23 16:57:13 -08:00
Slava Kim
27f249bfed A lot of crazy package bumps 2015-01-21 14:03:55 -08:00
Slava Kim
f146489c27 Fix the bug of firing a rendered callback when it was added too late 2015-01-21 12:26:51 -08:00
Sashko Stubailo
c37342d504 Bump a bunch of package versions 2015-01-20 22:34:24 -08:00
ekatek
c5bc843816 bring README.md files up to 1.0.3 compatibility
Fill in all packages without README.md files with a short
README.md mentioning that this is an internal Meteor package.

Break up the top paragraph of a couple of existing README.md
files to be proper long description.

There is more work to do here, involving line wrapping and the like.
2015-01-20 12:21:35 -08:00
David Glasser
6b204ca73a Bump package versions for 1.0.2 2014-12-19 10:31:59 -08:00
David Glasser
73b809c122 Bump versions for 1.0.2. 2014-12-11 22:44:41 -08:00
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -08:00
David Greenspan
ab92f117ae Expand fix for #3130
If you Blaze.remove a View that is a template rendered by Blaze.renderWithData, or included with an implicit “with” as in `{{> myTemplate someData}}`, Blaze will now remove the DOM of the template, and also remove the implicit “with” (in both cases).

As background, Blaze.remove only works on Views that were attached directly under a DOM element, not inside another View.  Blaze.render always attaches the resulting View directly under a DOM element, but Blaze.renderWithData creates a “with” View around the template View.  Previously, you could Blaze.remove the “with” View (which is returned by renderWithData), but if you got access to the template’s View some other way and tried to remove it directly, nothing would happen.  Now, the correct thing happens (the View is destroyed and the DOM is removed).

In the future, we should consider whether Blaze.remove should work on arbitrary Views, not just Views attached under a DOM element.
2014-12-09 13:17:12 -08:00
Slava Kim
ebce6c46aa Add a blaze test for #3130 2014-12-08 17:05:05 -08:00
Mitar
d6fd5c21bc Added tests and documentation. 2014-12-07 13:30:38 -08:00
David Glasser
de5f68cf70 bump all versions (due to source-map upgrade) 2014-11-25 09:06:26 -08:00
Sashko Stubailo
36da5aecb4 Make all version numbers not have rc 2014-10-13 14:09:37 -07:00
Sashko Stubailo
698fbedb10 Bump all of the version numbers to rc.0 2014-10-07 17:10:48 -07:00
Sashko Stubailo
1e53f6b598 Bump all version numbers again after cherry-picking unipackage fix 2014-10-01 17:06:57 -07:00
Sashko Stubailo
0129c3f5ac Bump all of the version numbers again, to republish with the unipackage.json fix 2014-10-01 15:43:05 -07:00
Sashko Stubailo
eecc272e4a Bump every single package version number due to a change in compilation 2014-09-29 23:44:50 -07:00
David Greenspan
78bb8399d2 Merge branch 'devel' into helper-syntax 2014-09-25 13:55:36 -07:00
David Greenspan
22845b6f11 Port spacebars-tests to new-style helpers 2014-09-24 22:02:57 -07:00
David Greenspan
8407a81b16 Remove stray debugging aid 2014-09-24 19:44:15 -07:00
David Greenspan
a3f3b7b690 Add tests for old-style helper back-compat 2014-09-24 19:04:17 -07:00