Permalink
Browse files

Fix css hack if style element exists

  • Loading branch information...
1 parent 2e2056f commit 350a8667cae2ae98589ed4e2ec19bbc8f7dc1864 @sellig sellig committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 hammer.js
View
@@ -35,7 +35,7 @@ function Hammer(element, options, undefined)
// some css hacks
var vendors = ['-webkit-','-moz-','-ms-','-o-',''];
- var css = '';
+ var css = element.getAttribute('style');
var css_props = {
"user-select": "none",
"touch-callout": "none",

0 comments on commit 350a866

Please sign in to comment.