David Greenspan
dfbbde4aa7
Merge branch 'devel' into blaze-refactor
...
Conflicts:
packages/webapp/webapp_server.js
2014-07-01 13:29:04 -07:00
David Greenspan
e31127251b
Create builtins.js (again)
...
Remove dead _mayContainViews
2014-07-01 12:42:33 -07:00
David Greenspan
4a6f8ed936
Remove TODO comment
2014-07-01 12:39:47 -07:00
David Greenspan
43c4ec922c
Fire destroyed callbacks sooner
...
You ought to be able to access the DOM from the destroyed callback now (even without this change), but I haven’t really tried it or looked into it.
2014-07-01 12:39:31 -07:00
David Greenspan
f2c925d8c1
Kill DOMAugmenter in favor of onAttachedDetached
2014-07-01 12:36:30 -07:00
David Greenspan
2cc3db0fe0
Remove blank lines
2014-07-01 12:32:00 -07:00
David Greenspan
aa3f67a62d
Remove dead code
2014-07-01 12:03:45 -07:00
David Greenspan
28281f98b5
Merge branch 'blaze-views' into blaze-refactor
2014-07-01 11:11:28 -07:00
David Greenspan
511e5ed64a
Fix remaining tests (less and stylus)
2014-07-01 11:01:55 -07:00
David Greenspan
734816c7d7
Cleaner codegen of attribute values
2014-07-01 10:57:46 -07:00
David Greenspan
f93a570d27
Fix compile_tests
2014-07-01 10:34:26 -07:00
David Greenspan
026216c389
Fix scanner_tests
2014-07-01 10:29:07 -07:00
David Greenspan
284529992e
Fix UI.contentBlock data context
2014-07-01 10:25:48 -07:00
David Greenspan
8c8887da7c
Fix rest of the render tests
2014-07-01 10:20:06 -07:00
David Greenspan
e4ca96af57
Fix “stop” reactivity
...
Destroy members of a DOMRange immediately on invalidation of the last render, not waiting for re-run. Provide DOMRange#destroyMembers.
Don’t call view.autorun from view.render() in builtins, and enforce it.
Remove dead code “onstop” from DOMRange.
2014-07-01 10:18:56 -07:00
David Greenspan
3d12c6dbfa
Fix a bunch of tests
2014-06-30 20:28:02 -07:00
Avital Oliver
217313f04a
Fix UI.getElementData
2014-06-30 20:27:42 -07:00
Avital Oliver
bae3b16ebc
Fix UI.render/UI.renderWithData/UI.insert
2014-06-30 20:22:24 -07:00
Avital Oliver
1ba01a4b19
Remove dead code
2014-06-30 20:16:26 -07:00
Avital Oliver
b21d87d142
Merge branch 'blaze-refactor' into blaze-views
...
Conflicts:
packages/spacebars-tests/template_tests.html
packages/spacebars-tests/template_tests.js
packages/ui/package.js
packages/ui/ui.js
2014-06-30 20:14:58 -07:00
Avital Oliver
31a6cec54b
Port UI._parentData
2014-06-30 20:01:25 -07:00
Avital Oliver
ab21aa2e7c
re-implement UI._templateInstance()
2014-06-30 19:50:32 -07:00
David Greenspan
ecefa13e85
Assign view.domrange later
2014-06-30 19:50:23 -07:00
David Greenspan
7d7f1cafcb
Implement template lifecycle callbacks
2014-06-30 19:38:59 -07:00
Avital Oliver
2d361b219f
also mv global_template_object.js templating.js in package.js
2014-06-30 19:35:07 -07:00
Avital Oliver
8f8957ce85
mv global_template_object.js templating.js
2014-06-30 19:22:14 -07:00
David Greenspan
925d8b3c77
Fix more tests (Blaze.toHTML)
2014-06-30 19:19:45 -07:00
Avital Oliver
7aeb7b5cd4
fix template instances in event handler arguments
2014-06-30 19:16:52 -07:00
David Greenspan
bc01e49b3a
Fix #each in text mode
2014-06-30 19:15:20 -07:00
David Greenspan
0766b13ba8
Fix block helpers
2014-06-30 19:13:10 -07:00
David Greenspan
c885ef3e15
Fix textarea materialization
2014-06-30 18:58:31 -07:00
Avital Oliver
5c6f99b092
towards html scanner tests passing
2014-06-30 18:52:36 -07:00
David Greenspan
d1246f13ab
Fix some tests (and a comment)
2014-06-30 18:08:45 -07:00
David Greenspan
e0d6a2ef00
Make events and textareas work!
2014-06-30 17:49:03 -07:00
David Greenspan
b2d620955b
Blaze.isTemplate, Blaze.runTemplate
2014-06-30 16:37:13 -07:00
David Greenspan
d6bd5654ce
tinytest sort of works
2014-06-30 16:11:18 -07:00
David Greenspan
ab4bb8f993
Get rid of 3s/OLDSTYLE, start to exclude old code
2014-06-30 15:45:12 -07:00
David Greenspan
9dd5fac49c
webapp_server works
...
This confirms that we can convert complicated templates (including #if, #each, and dynamic attributes) into HTML using Views.
Template#__lookup was moved to View#lookup, since webapp_server is an example of a case where we have lookup but no template!
Next steps: get rid of the “3” after some names, the OLDSTYLE flag, and dead code in the blaze package. Then make Template features like events, `helper`, etc. work.
2014-06-30 15:36:33 -07:00
David Greenspan
bac6974298
Properly codegen reactive attributes
2014-06-30 15:05:35 -07:00
David Greenspan
6459385fc0
Attributes, toHTML, toText (untested)
2014-06-30 14:51:29 -07:00
David Greenspan
fea642cd96
Fix scope of block helper argument calculation
2014-06-29 18:59:42 -07:00
David Greenspan
6caa66adee
comments
2014-06-28 17:06:58 -07:00
David Greenspan
aacb940591
Seem to have a working Each view
2014-06-27 21:45:01 -07:00
David Glasser
6bf6480569
Clarify that your publisher must do SOMETHING
...
Either return cursor(s), or use the low-level API.
Fixes #2253
2014-06-27 16:48:20 -07:00
David Glasser
135b0b56e9
install script should write files as current user
...
If you ran it as root before, it would write files as whatever uid we
had on our buildbot. Oops!
Fixes #2249 .
2014-06-27 16:37:14 -07:00
Matthew Arbesfeld
fe5ff812e4
Revert change to warning text, going to do this on Monday
2014-06-27 15:31:01 -07:00
Avital Oliver
5e0e227eb4
Remove an old test that was replaced by a test in spacebars-tests
2014-06-27 14:11:02 -07:00
Avital Oliver
c0edd2d699
Port UI._parentData
2014-06-27 14:03:23 -07:00
Slava Kim
d17c190c52
Observe-sequence package recognizes different cursors by checking the interface
...
of observe and fetch.
Before it checked that the cursor is an instance of Minimongo.Cursor.
2014-06-27 13:42:05 -07:00
Avital Oliver
33cd3a5344
Port UI.getElementData
2014-06-27 13:40:06 -07:00