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

[TIMOB-10492] MobileWeb: only odd sections had separator line #3784

Closed
wants to merge 1 commit into from
Closed

[TIMOB-10492] MobileWeb: only odd sections had separator line #3784

wants to merge 1 commit into from

Conversation

shepik
Copy link

@shepik shepik commented Jan 25, 2013

When setting table data after table creation, rows in even sections had transparent separator lines.
Looks like a typo.

@ingo
Copy link
Contributor

ingo commented Feb 8, 2013

Thank you for your commit. We need a ticket associated with each pull request so it can be properly tested. Can you please create one or find one as mentioned in the pull request guide?

@@ -192,7 +192,7 @@ define(['Ti/_/declare', 'Ti/_/UI/KineticScrollView', 'Ti/_/style', 'Ti/_/lang',
},

_refreshSections: function() {
for (var i = 0; i < this._sections._children.length; i += 2) {
for (var i = 0; i < this._sections._children.length; i += 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change this to i++ instead of i += 1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Silly question: Wouldn't this run faster as:

var c=this._sections._children;
for (var i = 0; i < c.length;) c[i++]._refreshRows();

?

@ingo
Copy link
Contributor

ingo commented Feb 6, 2015

Thank you. It appears that this contributor has closed the originating repository. If you are still interested in this addition, please let us know and we can reopen a new PR with updated code.

@ingo ingo closed this Feb 6, 2015
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.

None yet

4 participants