can't extend bounding box thingy

This commit is contained in:
fat 2012-12-19 22:03:57 -08:00
parent dc4e80a655
commit 219d275ae6
4 changed files with 6 additions and 4 deletions

View File

@ -192,7 +192,8 @@
, getPosition: function () {
var el = this.$element[0]
return $.extend(el.getBoundingClientRect ? el.getBoundingClientRect() : {
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
width: el.offsetWidth
, height: el.offsetHeight
}, this.$element.offset())

View File

@ -1208,7 +1208,8 @@
, getPosition: function () {
var el = this.$element[0]
return $.extend(el.getBoundingClientRect ? el.getBoundingClientRect() : {
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
width: el.offsetWidth
, height: el.offsetHeight
}, this.$element.offset())

File diff suppressed because one or more lines are too long

View File

@ -192,7 +192,7 @@
, getPosition: function () {
var el = this.$element[0]
return $.extend(el.getBoundingClientRect ? el.getBoundingClientRect() : {
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
width: el.offsetWidth
, height: el.offsetHeight
}, this.$element.offset())