Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed Feb 6, 2013
1 parent 457b71a commit 8a13797
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions maskew.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ class window.Maskew
elStyle = window.getComputedStyle @_el
xMetrics = ['width', 'paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth']
yMetrics = ['height', 'paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']
@_width = 0
@_width = @_height = 0
@_width += getMetric elStyle, key for key in xMetrics
@_height = 0
@_height += getMetric elStyle, key for key in yMetrics

@_outerMask = document.createElement 'div'
Expand Down
3 changes: 1 addition & 2 deletions maskew.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion maskew.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a13797

Please sign in to comment.