Commit Graph

216 Commits

Author SHA1 Message Date
Nick Martin
619faab29f fix another typeof 2014-10-13 18:04:14 -07:00
Rahul
bd9dcf9643 Fix the typeof check
Encountered this bug when I tried to update an app that was generating Blaze warnings about the deprecated old-style helper to a 0.9.4 RC. The problem is that the type of the string `'Log'` is being checked rather than the value of the `Log` variable, which obviously returns true, and then the code breaks on the `&& Log` check, which is undefined.
2014-10-13 18:00:25 -07: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
ekatek
dd7635af6e merging from master 2014-09-25 19:45:48 -07:00
ekatek
bab557d49b incrementing package versions for a clean release 2014-09-25 18:34:34 -07:00
David Greenspan
22845b6f11 Port spacebars-tests to new-style helpers 2014-09-24 22:02:57 -07:00
David Greenspan
e8ebfe8aae First cut of deprecating old helper syntax
with back-compat.

The “old-style” syntax is `Template.foo.bar = …` instead of `Template.foo.helpers({bar: …})`.

Properties of back-compat to test:  You can replace an old-style helper (overwrite it).  You can delete an old-style helper.  We don’t have to support these capabilities, but we used them both in our test code, so apps probably do it too.

We print a deprecation once per helper.  This leads to a lot of warnings!  It’s helpful for porting, though developers who for some reason don’t want to port yet may want a way to disable them.

`spacebars-tests` pass.
2014-09-24 18:52:54 -07:00
David Greenspan
fe5c61104f Fix falsy helpers (like 0) 2014-09-24 17:02:20 -07:00
ekatek
220cc69e31 package versions incremented 2014-09-19 21:16:14 -07:00
David Greenspan
e7cf040177 Rename {{> UI.*}} to Template; remove UI uses
Rename inclusion macros (with back-compat) to: Template.dynamic, Template.contentBlock, Template.elseBlock.

Update all uses and mentions of UI in the repo, unless they are there for back-compat or testing reasons.

To do: Run unit tests.  Update docs for UI.dynamic.  Document Template.contentBlock and Template.elseBlock.
2014-09-17 17:24:25 -07:00
Justin SB
8fda0a0e1b Fix typo 2014-09-11 09:34:46 -07:00
Sashko Stubailo
6f829b32a9 Merge branch 'devel' into jsdocfinal
Conflicts:
	docs/client/api-box.js
	docs/client/api.html
	docs/client/data.js
	docs/client/nameToId.js
	docs/client/names.json
2014-09-05 18:43:20 -07:00
Emily Stark
402f4f656c Merge pull request #2511 from waitingkuo/blaze-error-message
mentions Blaze.render instead of UI.render in the error message
2014-09-05 17:12:56 -07:00
Sashko Stubailo
ef14f531ae Fix some small errors based on doc diff script 2014-09-05 11:52:59 -07:00
Sashko Stubailo
586b6e2712 Auto document a lot more things 2014-09-04 21:42:03 -07:00
Sashko Stubailo
1402fdd3f6 Document all Template and Blaze methods with autoApiBox and fix links 2014-09-04 19:29:58 -07:00
Sashko Stubailo
1dd43672d6 Move most of Blaze docs to autoApiBox 2014-09-04 19:20:39 -07:00
Avital Oliver
c23408bdd7 versions for 0.9.1 2014-09-04 15:41:39 -07:00
waitingkuo
d1e048c412 mentions Blaze.render instead of UI.render 2014-09-03 16:55:09 +08:00
Avital Oliver
808c90e3db Bump rc versions on packages 2014-09-01 00:16:00 -07:00
David Greenspan
e4c1e18392 Fix back-compat typo 2014-08-29 16:29:45 -07:00
David Greenspan
c21f49c6e3 Back-compat for template-internal API calls 2014-08-29 16:20:42 -07:00
Avital Oliver
18c917b44f Oops. Bump blaze to a new major version 2014-08-28 11:35:30 -07:00
Avital Oliver
864fffc9e9 Bump package versions in preparation for 0.9.1-rc0 2014-08-28 11:00:35 -07:00
David Greenspan
1dedd89387 Eliminate UI from docs; add some API to Template!
By choosing names like Template.registerHelper(…) and Template.instance() (instead of Blaze), we can separate the “Templates” section and the “Blaze” section of the docs.
2014-08-28 04:11:25 -07:00
David Greenspan
db17540f2f findView becomes getView, has no viewName arg
Also, make UI.templateInstance() not throw, to match the docs.
2014-08-28 02:46:13 -07:00
David Greenspan
c9857ea642 Change additional occurrences of Deps to Tracker 2014-08-27 22:43:28 -07:00
David Greenspan
8345de74e9 Merge branch 'devel' into blaze-templates
Conflicts:
	docs/.meteor/versions
	docs/client/api.html
	docs/client/docs.js
	packages/blaze/builtins.js
	packages/blaze/materializer.js
	packages/blaze/render_tests.js
	packages/blaze/view.js
	packages/livedata/package.js
	packages/minimongo/package.js
	packages/reactive-var/reactive-var.js
	packages/standard-app-packages/package.js
	packages/templating/templating.js
	packages/test-helpers/reactivevar.js
	packages/test-in-browser/package.js
	packages/ui/package.js
2014-08-27 22:34:21 -07:00
David Greenspan
a0fe0c8ad6 Prevent Blaze.remove from doing extra detaches
(The test doesn’t really cover the case we encountered in iron-layout.)

It’s normal to end up calling Blaze.remove on an already-destroyed View, or a View that is not attached directly the DOM but has a parentRange (it’s just that it takes a situation like iron-layout to actually have a pointer to such a View in your code).
2014-08-27 20:28:05 -07:00
Sashko Stubailo
41910019e1 Renamed Deps to Tracker in all packages 2014-08-27 20:05:22 -07:00
David Greenspan
4e1111f6fa Make deprecated use of UI.render/UI.insert work
(but warn)
2014-08-27 16:03:37 -07:00
David Greenspan
56cb304895 Rename Blaze.findView to Blaze.getView
and make second argument private
2014-08-27 16:01:38 -07:00
David Greenspan
bfdee38b07 Restore parentView argument to Blaze.render 2014-08-27 15:44:23 -07:00
David Greenspan
d660ffd290 Make “reactive-var” package
No more ReactiveVar test-helper!  They were basically identical.  Yay.
2014-08-27 14:42:59 -07:00
David Greenspan
bdb9ddfaae Make view.isAttached private again 2014-08-26 17:32:15 -07:00
David Greenspan
28f8c0c9ef Kill UI.insert, make UI.render require DOM node 2014-08-26 17:26:03 -07:00
David Greenspan
c22de092e9 Remove Blaze._symbol, which is now unnecessary 2014-08-26 16:31:58 -07:00
David Greenspan
c93ac97c10 All-but-remove the ui package
Also improve info strings on blaze and ui

Not in this commit:
* Change all uses of `ui` package to use `blaze`
* Change all references to UI symbol to Blaze
* Change docs accordingly
2014-08-26 15:53:24 -07:00
David Greenspan
5eae6f409e Remove UI.destroy
Don’t fix the docs yet; will do a pass that includes removing UI.insert
2014-08-26 14:12:30 -07:00
David Greenspan
6945e82d4a Fix originally intended use of _skipNodes 2014-08-26 12:33:03 -07:00
David Greenspan
cc0c833610 Merge branch 'devel' into blaze-templates 2014-08-19 11:10:56 -07:00
David Glasser
d8ff20103d version bumps (pre rc10)
We'll make rc10 tomorrow, but I want to build a release just to play
with built releases again.
2014-08-18 20:48:43 -07:00
David Greenspan
f5883827ae Make UI.ReactiveVar public 2014-08-18 17:34:35 -07:00
David Greenspan
e10e920942 UI.findView (instead of getCurrentView, etc.) 2014-08-18 17:05:37 -07:00
David Greenspan
dee86be33e Mucho API docs for UI 2014-08-18 14:32:27 -07:00
David Greenspan
1f5fc9d89a Merge branch 'devel' into blaze-templates 2014-08-17 11:23:48 -07:00