Permalink
Browse files

rebuild & version bump

  • Loading branch information...
1 parent f31a913 commit e78548785b7ec249b1016a6746183c1101562c32 @rvagg rvagg committed Oct 30, 2012
Showing with 4 additions and 5 deletions.
  1. +2 −2 bonzo.js
  2. +1 −1 bonzo.min.js
  3. +1 −1 package.json
  4. +0 −1 src/bonzo.js
View
@@ -781,9 +781,9 @@
* @return {Bonzo|number}
*/
, offset: function (opt_x, opt_y) {
- if (typeof opt_x == 'object' && (typeof opt_x.top == 'number' || typeof opt_x.left == 'number')) {
+ if (opt_x && typeof opt_x == 'object' && (typeof opt_x.top == 'number' || typeof opt_x.left == 'number')) {
return this.each(function (el) {
- xy(el, opt_x.top, opt_y.left)
+ xy(el, opt_x.left, opt_x.top)
})
} else if (typeof opt_x == 'number' || typeof opt_y == 'number') {
return this.each(function (el) {
Oops, something went wrong.

0 comments on commit e785487

Please sign in to comment.