summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/mx
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-01-28 11:49:10 -0500
committerJules Laplace <jules@okfoc.us>2015-01-28 11:49:10 -0500
commite3ff5315f7ea7421431658077253c4d71f0f5731 (patch)
tree62a06e26c77ca9454cc0535f39da698319713eac /public/assets/javascripts/mx
parent79fee7f24d43873fc35295eab1d2a089d373e133 (diff)
parent3059c3203d2cec4e2e745be8c21c6d3fbddb0c14 (diff)
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
Diffstat (limited to 'public/assets/javascripts/mx')
-rw-r--r--public/assets/javascripts/mx/mx.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/public/assets/javascripts/mx/mx.js b/public/assets/javascripts/mx/mx.js
index d59a551..ab9a9a0 100644
--- a/public/assets/javascripts/mx/mx.js
+++ b/public/assets/javascripts/mx/mx.js
@@ -162,24 +162,24 @@ var MX = MX || (function (undefined) {
Object.defineProperty(this, 'width', {
get: function () {
return width
- || parseInt(self.el.style.width*devicePixelRatio, 10)
+ || parseInt(self.el.style.width, 10) * app.devicePixelRatio
|| 0
},
set: function (val) {
width = val
- this.el.style.width = (width/devicePixelRatio) + 'px'
+ this.el.style.width = (width/app.devicePixelRatio) + 'px'
}
})
Object.defineProperty(this, 'height', {
get: function () {
return height
- || parseInt(self.el.style.height*devicePixelRatio, 10)
+ || parseInt(self.el.style.height, 10) * app.devicePixelRatio
|| 0
},
set: function (val) {
height = val
- this.el.style.height = (height/devicePixelRatio) + 'px'
+ this.el.style.height = (height/app.devicePixelRatio) + 'px'
}
})
}
@@ -302,9 +302,9 @@ var MX = MX || (function (undefined) {
+ (-this.y).toFixed(floatPrecision) + 'px,'
+ (-this.z).toFixed(floatPrecision) + 'px) '
+ 'scale3d('
- + (devicePixelRatio * this.scaleX).toFixed(floatPrecision) + ','
- + (devicePixelRatio * this.scaleY).toFixed(floatPrecision) + ','
- + (devicePixelRatio * this.scaleZ).toFixed(floatPrecision) + ') '
+ + (app.devicePixelRatio * this.scaleX).toFixed(floatPrecision) + ','
+ + (app.devicePixelRatio * this.scaleY).toFixed(floatPrecision) + ','
+ + (app.devicePixelRatio * this.scaleZ).toFixed(floatPrecision) + ') '
if (rotationTranslation) {
transformString += rotationTranslation.before