Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Fixed image saving for settings #539

Merged
merged 1 commit into from
Nov 11, 2015
Merged

Fixed image saving for settings #539

merged 1 commit into from
Nov 11, 2015

Conversation

tladendo
Copy link
Contributor

@tladendo tladendo commented Nov 6, 2015

@@ -51,7 +51,7 @@
}
}
});
});
}, 400);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this $timeout affect the image save?

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 just put it in because without it, there was a console error. i figured whoever wrote the timeout wanted there to be an actual timeout

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I wrote it awhile back? I just left it blank so it'd default to 0, cause I needed it to get added to the end of the event queue. Not having an explicit time shouldn't produce an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

here's the error:
TypeError: Cannot read property 'currentPassword' of undefined
at Object.fn (http://local.topcoder-dev.com:3000/settings/account-info/account-info.controller.js:46:33)
at Scope.$digest (http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:15715:29)
at Scope.$apply (http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:15986:24)
at http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:17753:36
at completeOutstandingRequest (http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:5490:10)
at http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:5762:7
at nrWrapper (http://local.topcoder-dev.com:3000/settings/account/:322:12787) undefined(anonymous function) @ angular.js:12416(anonymous function) @ angular.js:9203(anonymous function) @ exception-handler.provider.js:57Scope.$digest @ angular.js:15733Scope.$apply @ angular.js:15986(anonymous function) @ angular.js:17753completeOutstandingRequest @ angular.js:5490(anonymous function) @ angular.js:5762nrWrapper @ (index):322
angular.js:12416 Error: Cannot read property 'currentPassword' of undefined Object {exception: TypeError: Cannot read property 'currentPassword' of undefined
at Object.fn (http://local.topcod…, cause: undefined}

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird! Wonder why it stopped working haha. I guess 400ms isn't going to hurt anything :D I wish I could get rid of the $timeout completely!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it's one of the things we should can when we refactor

tladendo added a commit that referenced this pull request Nov 11, 2015
@tladendo tladendo merged commit 2f76c70 into dev Nov 11, 2015
@nlitwin nlitwin deleted the feature/tom-SUP-2120 branch January 26, 2016 22:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants