Skip to content

Releases: canjs/can-stache-bindings

speeds up tests by not group logging

31 Oct 03:05
Compare
Choose a tag to compare

allow multiple one-directional updates

31 Oct 02:57
Compare
Choose a tag to compare

Issue: #499

Commit: 783688c

If a parent component renders a child like:

<child value:to="this.value">

And child updates parent's value to "A"

And child renders:

<grand-child value:to="this.value">

Which causes an update to <child> which causes another update to <parent>, there would be 2 updates an the 2nd update was being prevented because of "cycles". We now allow 100 of these changes.

on:event simple setters

03 Oct 19:21
Compare
Choose a tag to compare

Adds simple setters for on:event bindings like on:click="this.key = value"

Example:

      <p>Priority: {{this.priority}}</p>
      <button on:click="this.priority = 0">Urgent</button>
      <button on:click="this.priority = 1">Critical</button>
      <button on:click="this.priority = 10">Fahgettaboudit</button>

The key that is being set can be any key accessible by the scope. For example:

  • Set values on the viewModel - on:click="this.priority = 0".
  • Set values on a variable in the scope - on:click="todo.priority = 0".
  • Set values on a scope value - on:click="scope.element.value = 0"

The value that is being set must be represented by an expression that evaluates to a value. For example:

  • primitives - on:click="this.priority = 0"
  • variables - on:click="this.priority = todo.priority"
  • functions - on:click="this.priority = this.getPriority(todo)"

PR: #492

Make binding teardown account for documentElement being removed

30 Sep 21:55
Compare
Choose a tag to compare

improved binding update function names

29 Sep 18:49
Compare
Choose a tag to compare

bindings.viewModel passes bindingState

10 Aug 02:07
Compare
Choose a tag to compare

#483

passes the bindingState which includes information about the binding

v4.3.3

26 Jul 15:42
Compare
Choose a tag to compare

fixed #347

v4.3.2

26 Jul 14:12
Compare
Choose a tag to compare

General documentation fixes, PR #480

Doc fixes, replacing %event with scope.event

19 Jul 20:09
Compare
Choose a tag to compare

v4.3.0

29 Jun 21:49
Compare
Choose a tag to compare
  • Use can-bind internally #452
  • Add "use strict" #469