Permalink
Browse files

Switched to use has("touch") syntax for touch code where there is sig…

…nificant dead code that could be removed.
  • Loading branch information...
1 parent a30a30c commit ce2700ecb999315b44464788a0bf33a47b8b7334 @kriszyp committed Oct 3, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 List.js
  2. +1 −1 Selection.js
View
4 List.js
@@ -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
2 Selection.js
@@ -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);

0 comments on commit ce2700e

Please sign in to comment.