We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cab23e commit 5ca6d8cCopy full SHA for 5ca6d8c
src/manager.js
@@ -262,6 +262,9 @@ Manager.prototype = {
262
*/
263
function toggleCssProps(manager, add) {
264
var element = manager.element;
265
+ if(!element.style) {
266
+ return;
267
+ }
268
each(manager.options.cssProps, function(value, name) {
269
element.style[prefixed(element.style, name)] = add ? value : '';
270
});
src/touchaction.js
@@ -32,7 +32,7 @@ TouchAction.prototype = {
32
value = this.compute();
33
}
34
35
- if (NATIVE_TOUCH_ACTION) {
+ if (NATIVE_TOUCH_ACTION && this.manager.element.style) {
36
this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;
37
38
this.actions = value.toLowerCase().trim();
0 commit comments