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

Adds computed attributes for can.List instances #862

Merged
merged 3 commits into from
Apr 9, 2014

Conversation

alexisabril
Copy link
Contributor

Adds computed attributes for can.List instances. Closes #790

@daffl daffl changed the title Adds computed attributes for can.List instances. Fixes #790 Adds computed attributes for can.List instances Apr 4, 2014
@daffl daffl added this to the 2.1.0 milestone Apr 4, 2014
@@ -127,7 +128,15 @@ steal("can/util", "can/map", "can/map/bubble.js",function (can, Map, bubble) {

},
__get: function (attr) {
return attr ? this[attr] : this;
if (attr) {
if (this._computedBindings[attr]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use the same check here as in can.Map (if (this[attr] && this[attr].isComputed && can.isFunction(this.constructor.prototype[attr])) {)?

daffl added a commit that referenced this pull request Apr 9, 2014
Adds computed attributes for can.List instances
@daffl daffl merged commit b4b44f6 into lazy-bubbling Apr 9, 2014
@daffl daffl deleted the 790-list-compute branch April 9, 2014 18:01
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

Successfully merging this pull request may close these issues.

2 participants