Permalink
Browse files

Merge pull request #19 from frankbille/patch-1

Ensure that properties can be overwritten
  • Loading branch information...
2 parents c3d1590 + a7bcc4b commit 64d3de08f12d484c866de729162d8f1b184cad7e @sirkitree committed Feb 22, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 google-plus-signin.js
View
@@ -30,7 +30,7 @@ angular.module('directive.g+signin', []).
// Provide default values if not explicitly set
angular.forEach(Object.getOwnPropertyNames(defaults), function(propName) {
- if (!attrs.hasOwnProperty('data-' + propName)) {
+ if (!attrs.hasOwnProperty(propName)) {
attrs.$set('data-' + propName, defaults[propName]);
}
});

0 comments on commit 64d3de0

Please sign in to comment.