Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported Features #1

Open
2 of 12 tasks
justinbmeyer opened this issue Jun 28, 2021 · 1 comment
Open
2 of 12 tasks

Unsupported Features #1

justinbmeyer opened this issue Jun 28, 2021 · 1 comment

Comments

@justinbmeyer
Copy link
Contributor

justinbmeyer commented Jun 28, 2021

Stache

  • {{3}} looking up the 4th item in an array (assuming there is an array in the scope)
  • Skipping the protections around img srcs like: <img src="{{image}}"/>. These can be changed to src:from.
  • @index being a helper that can add an offset like: <ul>{{#each list}}<li>{{@index 5}} {{.}}</li>{{/each}}</ul>
  • @index use %index
  • joinBase {{joinBase 'hello/' name}}
  • options 2nd argument to stache .subtemplate (we should get a warning here). Also scope.options for both custom tags and attributes.
  • call expressions

Utils

  • jQuery can make normal objects "bindable". If this is something that's wanted, we might want to use SimpleMap or mixin eventQueue(object)

Component

  • complex nesting of <content/> element. How common is <content>? I can spend time making some edge cases work, but I'm skipping for now.
  • hyphen-less tag names <tabs> defined after the template.
  • Make sure component init event handlers are not unbound canjs#1803 Calling destroy before event handlers are unbound.
  • p3='{{v3}}' use normal bindings instead ... don't rely on automatic attribute bindings.
@justinbmeyer
Copy link
Contributor Author

justinbmeyer commented Jul 9, 2021

Control

If a can-23 control wants to opt into using the CanJS 6 removed event, you need to add:

Control.extend({
  " removed": function(){ ... }
  $useAsyncRemoved: true
})

This can be set globally like:

Control.$useAsyncRemoved = true

You need to import util/before-remove to get the beforeRemove event and control to make removed use beforeRemoved by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant