Skip to content

Commit 576e938

Browse files
author
Steve Orvell
committed
Merge pull request #35 from danbeam/patch-1
Fix optional parameter annotation for closure compilation purposes
2 parents 57b4dde + 16553a8 commit 576e938

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

paper-ripple-behavior.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
/**
6060
* Ensures this element contains a ripple effect. For startup efficiency
6161
* the ripple effect is dynamically on demand when needed.
62-
* @param {event} triggeringEvent (optional) event that triggered the
62+
* @param {!Event=} opt_triggeringEvent (optional) event that triggered the
6363
* ripple.
6464
*/
65-
ensureRipple: function(triggeringEvent) {
65+
ensureRipple: function(opt_triggeringEvent) {
6666
if (!this.hasRipple()) {
6767
this._ripple = this._createRipple();
6868
this._ripple.noink = this.noink;
@@ -72,8 +72,9 @@
7272
}
7373
var domContainer = rippleContainer === this.shadyRoot ? this :
7474
rippleContainer;
75-
if (triggeringEvent && domContainer.contains(triggeringEvent.target)) {
76-
this._ripple.uiDownAction(triggeringEvent);
75+
if (opt_triggeringEvent &&
76+
domContainer.contains(opt_triggeringEvent.target)) {
77+
this._ripple.uiDownAction(opt_triggeringEvent);
7778
}
7879
}
7980
},

0 commit comments

Comments
 (0)