-
Notifications
You must be signed in to change notification settings - Fork 142
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
Made changes to allow compilation with closure compiler #205
Conversation
firebase-database-behavior.html
Outdated
*/ | ||
path: { | ||
type: String, | ||
observer: '__pathChanged', | ||
value: null | ||
observer: '__pathChanged' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was the default value removed? This is a breaking change, yet it should fit in the same spec. Also will {String}
work since it's nullable unlike {string}
firebase-document.html
Outdated
@@ -50,14 +50,14 @@ | |||
}, | |||
|
|||
/** | |||
* @override | |||
* Getter for the new property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed as the syntax explains it
firebase-document.html
Outdated
*/ | ||
get isNew() { | ||
return this.disabled || !this.__pathReady(this.path); | ||
}, | ||
|
||
/** | ||
* @override | ||
* Getter for the zero value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
firebase-document.html
Outdated
*/ | ||
saveValue: function(parentPath, key) { | ||
return new Promise(function(resolve, reject) { | ||
var path; | ||
var path = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest null
over ''
since it was possible for this.path = undefined
before. null
is closer to undefined
over ''
firebase-document.html
Outdated
@@ -103,15 +103,15 @@ | |||
}, | |||
|
|||
/** | |||
* @override | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove doc
firebase-messaging.html
Outdated
@@ -249,7 +255,7 @@ | |||
|
|||
_bootstrapApp: function(app, customSw) { | |||
if (app && !customSw) { | |||
this.activate(); | |||
this.activate(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this exposes a problem that the user will no longer be able to simply call this.activate
in closure. Please change the @param
in activate to have @param{ServiceWorkerRegistration=}
firebase-query.html
Outdated
@@ -180,7 +180,7 @@ | |||
}, | |||
|
|||
/** | |||
* @override | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove doc
firebase-query.html
Outdated
@@ -200,7 +200,7 @@ | |||
}, | |||
|
|||
/** | |||
* @override | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
firebase-query.html
Outdated
@@ -221,7 +221,7 @@ | |||
}, | |||
|
|||
/** | |||
* @override | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
firebase-query.html
Outdated
@@ -277,7 +277,7 @@ | |||
}, | |||
|
|||
/** | |||
* `@override` | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
No description provided.