Commit Graph

430 Commits

Author SHA1 Message Date
Evan You bf73f08a8a unit test for utils.bind() 2013-11-18 16:32:02 -05:00
Evan You 91ba244300 no longer need bind.js shim 2013-11-18 15:46:29 -05:00
Evan You 8e0eb0db6e 0.5.1 2013-11-18 15:40:48 -05:00
Evan You 6204f8bf0f use simple bind instead of native bind, remove vm.$get() 2013-11-18 15:38:15 -05:00
Evan You b4902ae757 unit test for new exp-parser implementation 2013-11-18 15:15:11 -05:00
Evan You bc0fd377d5 New ExpParser implementation
- extract all paths and replace them with correct reference
- in the process, create missing bindings on the owner vm's compiler
2013-11-18 15:15:11 -05:00
Evan You 5b7b00f52f incomplete new exp parser implementation 2013-11-18 15:15:11 -05:00
Evan You c8779f1763 remove dead code 2013-11-18 13:17:12 -05:00
Evan You 23bd49fa08 only emit get events during deps parsing - improves perf 2013-11-17 23:54:39 -05:00
Evan You 7888d05dc1 Tests
- unit tests for Observer:
  - unobserve()
  - ensurePath()
  - ensurePaths()
  - Multiple observers
- unit test for sd-model:
  - should only lock update if it has no filters
- functional test for sd-model in validation.js:
  - should remember and restore selection position
    when it has filters
- functional test for Observer.ensurePaths():
  - should allow setting a nested scope object to {}
2013-11-17 20:08:20 -05:00
Evan You 3eba564120 fix sd-model selection position issue 2013-11-17 19:04:32 -05:00
Evan You a8e12f8ccd Firebase example + bug fixes
- move ensurePath() to Observer.js
- add Observer.ensurePaths(), which deals with the situation
  when a scope object with nested values is given a new value
  with incomplete nested structure. e.g. this.val = {}
- fix Directive argument regex
- sd-model: no longer locks during set() so filters work on
  input fields
- sd-repeat: handles undefined update, also fix transition
- utils.attr now takes additional `noRemove` argument
- ViewModel.$emit now also triggers event on itself
2013-11-17 02:04:29 -05:00
Evan You 88ebff6655 split multiple expressions by unquoted commas 2013-11-16 01:30:39 -05:00
Evan You b9f62f783c hide all $ properties on vm 2013-11-16 00:55:26 -05:00
Evan You 0f7a9294b6 fix observer emitSet() when observed by multiple vms 2013-11-16 00:20:46 -05:00
Evan You cd52b25718 readme [ci skip] 2013-11-15 14:40:13 -05:00
Evan You 3d4dfd8a7d readme [ci skip] 2013-11-15 14:38:23 -05:00
Evan You a2cc4089d2 travis only build master 2013-11-15 14:07:19 -05:00
Evan You 8ade1f4c25 0.5.0 2013-11-15 14:00:09 -05:00
Evan You bb7300ded4 functional test for routing 2013-11-15 13:59:00 -05:00
Evan You 2b5709479e travis badge! [ci skip] 2013-11-15 13:44:10 -05:00
Evan You 9555296f63 travis add component install 2013-11-15 13:33:41 -05:00
Evan You 00af9388b6 fix travis 2013-11-15 13:31:42 -05:00
Evan You f584c844b7 travis 2013-11-15 13:26:35 -05:00
Evan You 15d54e9fdc - add functional test for validation using filters
- filter functions now have a `this` context of the VM calling it.
2013-11-15 13:14:38 -05:00
Evan You 1270139b55 transition classes now defaults to sd-enter and sd-leave, also configurable. 2013-11-15 12:43:21 -05:00
Evan You a617315549 unit test for utils.split 2013-11-15 11:50:25 -05:00
Evan You 30784b5756 expressions
- add functional test case for sd-on expression handlers
- invalid inline expressions: the error will be captured and warning thrown
- add unit test case for invalid inline expressions
- utils.warn() now always gets thrown by default
- add `silent` config option to suppress warnings
2013-11-15 11:46:24 -05:00
Evan You f87f603d03 computed properties now use $get and $set to be more explicit 2013-11-15 11:06:11 -05:00
Evan You f772e84f76 no longer skip window in exp parsing 2013-11-15 10:25:53 -05:00
Evan You a7d184e44f transition class can take format of "enter,leave" 2013-11-15 00:22:17 -05:00
Evan You 9dc45ea9f6 sd-on can now execute expressions 2013-11-14 18:19:00 -05:00
Evan You 3dc6089b7f unit test for utils.attr() 2013-11-14 13:12:34 -05:00
Evan You 2c0d8a490b utils.attr()
A method that access an attribute on a node, removes that attribute
and returns the value. Makes code a bit shorter and reduces the need to
explicitly remove attributes.
2013-11-14 13:04:28 -05:00
Evan You d0dbe68da3 process options after assignment 2013-11-14 11:57:42 -05:00
Evan You ee36feac09 utils.processOptions()
merge utils.convertPartials & utils.convertComponents into one function
so it's cleaner in both main.js and compiler.js. Also removed some redundancy
for processing options.template.
2013-11-14 11:36:50 -05:00
Evan You 5ad8edeb08 change sd-viewmodel to sd-component, allow direct use of Objects in Seed.component() 2013-11-13 21:51:51 -05:00
Evan You 1be615fa05 npm install from github instead 2013-11-13 18:01:15 -05:00
Evan You 956ca105bf 0.4.2 2013-11-13 17:44:40 -05:00
Evan You 09377185ce functional tests for transition 2013-11-13 17:43:31 -05:00
Evan You 03fd9293a9 update dev dependencies 2013-11-12 15:44:31 -05:00
Evan You a740802330 unit tests for transitions 2013-11-12 13:45:54 -05:00
Evan You 257781c060 implement custom javascript transitions 2013-11-11 20:29:41 -05:00
Evan You cd80fe4bbb sniff transitionend event 2013-11-11 18:57:14 -05:00
Evan You cfb1e664ac resolve rebase conflicts for updatePrefix() 2013-11-11 18:07:10 -05:00
Evan You b508816c74 use force layout to trigger enter transition (making it work for FF) 2013-11-11 17:54:45 -05:00
Evan You bc85f749b6 fix transition + sd-repeat: do not use detach/retach when repeated item has transition property. 2013-11-11 17:54:45 -05:00
Evan You 11f89fbbc7 fix transition logic so previous unfinished transitions can be properly cancelled 2013-11-11 17:54:03 -05:00
Evan You 23c98cb505 meta 2013-11-11 17:54:03 -05:00
Evan You 36da0a783c transition working with sd-if + sd-repeat (TODO: $destroy) 2013-11-11 17:54:03 -05:00