Skip to content

Commit

Permalink
Merge pull request madrobby#997 from pomerantsev/redundant-check
Browse files Browse the repository at this point in the history
(refactor) remove redundant check
  • Loading branch information
mislav committed Aug 11, 2014
2 parents fa29465 + 3649e44 commit 4e7187c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zepto.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ var Zepto = (function() {
return element.style[camelize(property)] || computedStyle.getPropertyValue(property)
else if (isArray(property)) {
var props = {}
$.each(isArray(property) ? property: [property], function(_, prop){
$.each(property, function(_, prop){
props[prop] = (element.style[camelize(prop)] || computedStyle.getPropertyValue(prop))
})
return props
Expand Down

0 comments on commit 4e7187c

Please sign in to comment.