can.view.attr won't trigger in can.mustache if no value is provided #1353

Closed
savinger opened this Issue Dec 2, 2014 · 4 comments

Comments

Projects
None yet
4 participants
@savinger

savinger commented Dec 2, 2014

can.view.attr('foo-bar', function(el, data) {
  $(el).html('Hello World!');
});
$('body').append(can.mustache('<div foo-bar></div>')());
$('body').append(can.stache('<div foo-bar></div>')());

http://jsfiddle.net/fjaq8h66/

@savinger savinger changed the title from can.view.attr won't trigger if no value is provided to can.view.attr won't trigger in can.mustache if no value is provided Dec 2, 2014

@justinbmeyer justinbmeyer added the bug label Dec 2, 2014

@daffl daffl added this to the 2.2.0 milestone Dec 15, 2014

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Feb 9, 2015

Contributor

Does this happen in stache?

Contributor

justinbmeyer commented Feb 9, 2015

Does this happen in stache?

@savinger

This comment has been minimized.

Show comment
Hide comment
@savinger

savinger Feb 9, 2015

Nope. Maybe this fiddle is more clear: http://jsfiddle.net/fjaq8h66/1/

savinger commented Feb 9, 2015

Nope. Maybe this fiddle is more clear: http://jsfiddle.net/fjaq8h66/1/

@daffl daffl modified the milestones: 2.3.0, 2.2.0 Mar 2, 2015

@ccummings

This comment has been minimized.

Show comment
Hide comment
@ccummings

ccummings Jun 17, 2015

Contributor

+1
This doesn't happen in stache.
the scanner does not ouput a call to can.view.pending unless the attribute has an =

http://jsbin.com/varixuvawu/edit?html,js,output

Contributor

ccummings commented Jun 17, 2015

+1
This doesn't happen in stache.
the scanner does not ouput a call to can.view.pending unless the attribute has an =

http://jsbin.com/varixuvawu/edit?html,js,output

@daffl

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Oct 22, 2015

Contributor

This seems to be fixed in minor.

Contributor

daffl commented Oct 22, 2015

This seems to be fixed in minor.

@daffl daffl closed this Oct 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment