Switched to use has("touch") syntax for touch code where there is signif... #301

Merged
1 commit merged into from Oct 4, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
View
@@ -618,7 +618,7 @@ function(arrayUtil, kernel, declare, listen, has, miscUtil, TouchScroll, hasClas
return this.row(move(row, steps || 1, "dgrid-row", visible));
},
- scrollTo: TouchScroll ? function(){
+ scrollTo: has("touch") ? function(){
// If TouchScroll is the superclass, defer to its implementation.
return this.inherited(arguments);
} : function(options){
@@ -631,7 +631,7 @@ function(arrayUtil, kernel, declare, listen, has, miscUtil, TouchScroll, hasClas
}
},
- getScrollPosition: TouchScroll ? function(){
+ getScrollPosition: has("touch") ? function(){
// If TouchScroll is the superclass, defer to its implementation.
return this.inherited(arguments);
} : function(){
View
@@ -140,7 +140,7 @@ return declare([List], {
grid._handleSelect(event, this);
}
- if(touchUtil){
+ if(has("touch")){
// listen for touch taps if available
on(this.contentNode, touchUtil.selector(selector, touchUtil.tap), function(evt){
grid._handleSelect(evt, this);