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

Made changes to allow compilation with closure compiler #205

Merged
merged 2 commits into from
Apr 21, 2017

Conversation

Alos
Copy link
Contributor

@Alos Alos commented Apr 21, 2017

No description provided.

*/
path: {
type: String,
observer: '__pathChanged',
value: null
observer: '__pathChanged'
Copy link
Collaborator

@e111077 e111077 Apr 21, 2017

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}

@@ -50,14 +50,14 @@
},

/**
* @override
* Getter for the new property
Copy link
Collaborator

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

*/
get isNew() {
return this.disabled || !this.__pathReady(this.path);
},

/**
* @override
* Getter for the zero value.
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

*/
saveValue: function(parentPath, key) {
return new Promise(function(resolve, reject) {
var path;
var path = '';
Copy link
Collaborator

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 ''

@@ -103,15 +103,15 @@
},

/**
* @override
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove doc

@@ -249,7 +255,7 @@

_bootstrapApp: function(app, customSw) {
if (app && !customSw) {
this.activate();
this.activate(null);
Copy link
Collaborator

@e111077 e111077 Apr 21, 2017

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=}

@@ -180,7 +180,7 @@
},

/**
* @override
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove doc

@@ -200,7 +200,7 @@
},

/**
* @override
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

see above

@@ -221,7 +221,7 @@
},

/**
* @override
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

see above

@@ -277,7 +277,7 @@
},

/**
* `@override`
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

see above

@e111077 e111077 merged commit cd378c0 into FirebaseExtended:master Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants