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

Cleanup #9

Merged
merged 7 commits into from
Aug 18, 2015
Merged

Cleanup #9

merged 7 commits into from
Aug 18, 2015

Conversation

mmun
Copy link
Contributor

@mmun mmun commented Aug 18, 2015

No description provided.

@mmun mmun changed the title Use this.getAttr Cleanup Aug 18, 2015
this.offsetY = this._maybeMutAttr('offset-y', 0);
this.width = this._maybeMutAttr('width', 0);
this.height = this._maybeMutAttr('height', 0);
this.buffer = this.getAttr('buffer') | 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

this line doesn't make sense, why bitwise-or with 5? the idiom with | 0 means int value coercion not default to 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am ashamed

@raytiley
Copy link
Contributor

@mmun @krisselden are we good on this PR for now? I wanna work on ember-collection for a bit today, but the dummy app is currently broken, and I've already had to do a couple things in this PR.

@@ -24,7 +24,6 @@
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.0.0",
"ember-cli-release": "0.2.3",
"ember-disable-prototype-extensions": "^1.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the array observers are removed can we disable prototype extensions again?

Copy link
Contributor

Choose a reason for hiding this comment

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

i believe so yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, because we use pushObject. I've selectively enabled Array extensions in the EmberENV though.

mmun added a commit that referenced this pull request Aug 18, 2015
@mmun mmun merged commit 8bd9cc3 into master Aug 18, 2015
@mmun mmun deleted the hax branch August 18, 2015 19:24
// this.rerender();
// }
// },
willRender() {
Copy link
Contributor

Choose a reason for hiding this comment

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

this change makes it so the items are never updated after initial render. The rAF callback just calls rerender but this won't trigger the updateCells code path. Instead of calling rerender should we just do a Ember.run.scheduleOnce(this, 'updateCells') in the rAF callback?

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.

4 participants