fix(scroll): Fix scroll for devices w/out dataset support, closes #976

This commit is contained in:
Adam Bradley
2014-03-31 09:31:54 -05:00
parent 3e188ca20b
commit bfcf26507f

View File

@@ -623,7 +623,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
return e.target.tagName.match(IS_INPUT_LIKE_REGEX) ||
e.target.isContentEditable ||
e.target.tagName.match(IS_EMBEDDED_OBJECT_REGEX) ||
e.target.dataset.preventScroll;
e.target.dataset ? e.target.dataset.preventScroll : e.target.getAttribute('data-prevent-default') == 'true';
}