Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 984117 - [Calendar] JSHint fixes for js/views r=gaye #17254

Merged

Conversation

millermedeiros
Copy link
Contributor

tried to change as less code as possible.

@@ -366,7 +368,7 @@ Calendar.ns('Views').ModifyEvent = (function() {

if (this.isSaved()) {
var self = this;
function handleDelete() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was complaining that the FunctionDeclaration was inside a block (IfStatement) so it asks to change it to a FunctionExpression instead. - FunctionDeclaration is hoisted, FunctionExpression isn't.

millermedeiros added a commit that referenced this pull request Mar 19, 2014
Bug 984117 - [Calendar] JSHint fixes for js/views r=gaye
@millermedeiros millermedeiros merged commit 616eb22 into mozilla-b2g:master Mar 19, 2014
@millermedeiros millermedeiros deleted the 984117-jshint-views branch March 19, 2014 01:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants