Frankie Fu
0b47b894e8
Merge pull request #14 from sjmiles/master
...
change property automation to be property-first instead of attribute-first
2012-10-22 12:15:09 -07:00
Scott Miles
eba97f5e13
minor rearranging
2012-10-22 12:00:40 -07:00
Scott Miles
7c1a11f473
Merge branch 'master' of https://github.com/toolkitchen/toolkit
2012-10-22 11:51:44 -07:00
Scott Miles
6d7a2acb80
remove logging
2012-10-20 12:34:54 -07:00
Scott Miles
eed0b120c9
simplify selection and selector using all the latest sugar
2012-10-20 12:31:48 -07:00
Scott Miles
4b5f1bcb8a
_ function to route events to .controller on nearest ancestor who has one, add system for binding custom events by searching attributes for conventional custom-event prefix (at)
2012-10-20 12:31:24 -07:00
Scott Miles
3042038e8c
move one-time initialization work out of shadowRootCreated into created; shadowRootCreated is only for per-root initializations
2012-10-20 12:29:22 -07:00
Scott Miles
869be83067
add null-trap to deref
2012-10-20 12:28:31 -07:00
Scott Miles
b706f2831c
test statics (active) and dynamics (src)
2012-10-20 11:51:04 -07:00
Scott Miles
ddd314f57c
convert property-model, use attributes to flag opening/closing states for CSS, remove showClass, hideClass props, other reductions
2012-10-20 11:50:37 -07:00
Scott Miles
37d75b5991
apply simplifications available via property-first model and new sugaring (auto property-initialization and classList.enable polyfill)
2012-10-20 11:49:21 -07:00
Scott Miles
afe3358c32
switch from attribute-based properties to property-based attributes
2012-10-20 11:47:53 -07:00
Scott Miles
2ef3d9016f
ShadowDom -> ShadowDOM
2012-10-17 10:39:52 -07:00
frankiefu
56d4c7bb1c
g-ratings component and workbench file
2012-10-16 15:42:30 -07:00
frankiefu
2263eabfc0
call shadowRootCreated in the right scope
2012-10-16 15:42:29 -07:00
frankiefu
d1ba7ba331
update because of the name changes in polyfill
2012-10-16 15:42:29 -07:00
frankiefu
64a8d370ec
update based on pull request comments:
...
- separate g-xhr to a component (component-as-module-pattern)
- dispatch Events instead
- add jsdoc to public methods
- update comment
- use classList.enable
- use handlers="click: clickHandler" instead of experimental event
binding
2012-10-16 15:42:29 -07:00
frankiefu
5dff0fdfca
add ajax and togglebutton components
2012-10-16 15:42:29 -07:00
Scott J. Miles
8a45af8468
Merge pull request #13 from frankiefu/master
...
call shadowRootCreated in the right scope and add g-ratings component
2012-10-16 13:21:08 -07:00
frankiefu
618e39d94a
g-ratings component and workbench file
2012-10-15 16:30:22 -07:00
frankiefu
ee7c412ac8
call shadowRootCreated in the right scope
2012-10-15 16:29:04 -07:00
Steve Orvell
9bb4ea4e8a
Merge pull request #12 from frankiefu/master
...
update for names changes in polyfill
2012-10-15 12:47:00 -07:00
frankiefu
58e9c5438f
update because of the name changes in polyfill
2012-10-15 12:37:13 -07:00
Steve Orvell
1780b04583
Merge pull request #8 from frankiefu/master
...
add ajax and togglebutton components
2012-10-15 12:34:25 -07:00
Scott Miles
1e2fb1591e
slight refactoring of g-selector
2012-10-15 12:06:28 -07:00
frankiefu
4c32ee8bdb
update based on pull request comments:
...
- separate g-xhr to a component (component-as-module-pattern)
- dispatch Events instead
- add jsdoc to public methods
- update comment
- use classList.enable
- use handlers="click: clickHandler" instead of experimental event
binding
2012-10-15 11:42:30 -07:00
frankiefu
2a7224122c
Merge remote-tracking branch 'upstream/master'
2012-10-12 18:49:11 -07:00
Steve Orvell
64dbbce682
Merge pull request #9 from sjmiles/master
...
add g-selection and g-selector components
2012-10-12 18:34:35 -07:00
Scott Miles
c58db7ee9c
g-selector component and workbench file
2012-10-12 18:25:56 -07:00
Scott Miles
680c5f0f1e
component node references must come from the LOCAL tree, not the COMPOSED tree
2012-10-12 18:25:34 -07:00
Scott Miles
e7b47629c1
g-selection component and workbench file (our first API only module: component-as-module-pattern)
2012-10-12 18:23:06 -07:00
frankiefu
31de5a1a3d
add ajax and togglebutton components
2012-10-12 15:39:17 -07:00
frankiefu
431716ef83
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/g-component.html
2012-10-12 14:18:36 -07:00
Steve Orvell
6b71697272
Merge pull request #6 from sjmiles/master
...
various changes to enable g-overlay
2012-10-12 14:04:32 -07:00
Scott Miles
1aaf580685
overlay component and workbench file
2012-10-12 13:45:47 -07:00
Scott Miles
afbe09821a
factor shadowRootCreated so it's not inlined in 'components' method, support 'handlers' attribute via bindEvents, move x() event sugar to module bottom
2012-10-12 13:45:29 -07:00
Scott Miles
2cbb7190e5
define a utility object to store helper APIs, add 'job' API to utilities
2012-10-12 13:43:35 -07:00
Scott Miles
790391e025
function to bind events to object methods given a string value list of event/handler pairs (e.g. on "click:clickMe;focus:focusMe")
2012-10-12 13:42:14 -07:00
Scott Miles
42195adfc5
allow defaulting property values by having property getter default to value stored on prototype (if there is no matching attribute)
2012-10-12 13:40:44 -07:00
Scott Miles
c8cf70019d
add DOMTokenList polyfill (ad-hoc: directly in g-component)
2012-10-12 13:37:29 -07:00
frankiefu
94f043b231
Merge remote-tracking branch 'upstream/master'
2012-10-12 11:38:30 -07:00
Steve Orvell
fdf37963ce
Merge pull request #4 from sjmiles/master
...
add g-icon-button
2012-10-12 11:26:46 -07:00
Scott Miles
4ac8d9a24f
add g-icon-button component and workbench file
2012-10-12 11:21:28 -07:00
Scott Miles
91d50956fc
decruft g-icon.html
2012-10-12 11:21:08 -07:00
frankiefu
a62a46bdbd
take care of the case when there is no 'attributes'
2012-10-11 21:03:14 -07:00
Steve Orvell
eb5abe2bbd
Merge pull request #3 from sjmiles/master
...
fix path
2012-10-10 16:19:28 -07:00
Scott Miles
7f0d7e13c9
fix path
2012-10-10 16:17:26 -07:00
Steve Orvell
1281934d55
Merge pull request #2 from sjmiles/master
...
make workBench live with toollkit
2012-10-10 15:58:49 -07:00
Scott Miles
4491af97ae
legalese
2012-10-10 15:54:27 -07:00
Scott Miles
6204fd8881
add comment
2012-10-10 15:54:16 -07:00