Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update css 'transformOrigin' test & unprefix moz

  • Loading branch information...
commit 73aef20505ca2c637a3bec21ec9afbf9a87a6f4f 1 parent ef141ea
@rvagg rvagg authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  package.json
  2. +2 −2 src/bonzo.js
  3. +1 −1  tests/attributes-test.js
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "bonzo"
, "description": "Library agnostic, extensible DOM utility"
- , "version": "1.2.2"
+ , "version": "1.2.2-1"
, "homepage": "https://github.com/ded/bonzo"
, "author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)"
, "contributors": [
View
4 src/bonzo.js
@@ -44,7 +44,7 @@
, computedStyle: doc.defaultView && doc.defaultView.getComputedStyle
, cssFloat: e[byTag]('table')[0].style.styleFloat ? 'styleFloat' : 'cssFloat'
, transform: function () {
- var props = ['webkitTransform', 'MozTransform', 'OTransform', 'msTransform', 'Transform'], i
+ var props = ['transform', 'webkitTransform', 'MozTransform', 'OTransform', 'msTransform'], i
for (i = 0; i < props.length; i++) {
if (props[i] in e.style) return props[i]
}
@@ -191,7 +191,7 @@
*/
function styleProperty(p) {
(p == 'transform' && (p = features.transform)) ||
- (/^transform-?[Oo]rigin$/.test(p) && (p = features.transform + "Origin")) ||
+ (/^transform-?[Oo]rigin$/.test(p) && (p = features.transform + 'Origin')) ||
(p == 'float' && (p = features.cssFloat))
return p ? camelize(p) : null
}
View
2  tests/attributes-test.js
@@ -155,7 +155,7 @@ sink('Element attributes', function (test, ok) {
$('#styles').css({'transform':'rotate(30deg) scale(4)'})
ok($('#styles').css('transform') == 'rotate(30deg) scale(4)', 'rotate(30deg) scale(4) after setting \'transform\'')
$('#styles').css({'transform-origin':'40% 60%'})
- ok($('#styles').css('transform-origin') == '40% 60%', '40% 60% after setting \'transform-origin\' - ' + $('#styles').css('transform-origin'))
+ ok(/^40% 60%/.test($('#styles').css('transform-origin')), '40% 60% after setting \'transform-origin\' - ' + $('#styles').css('transform-origin'))
})
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.