Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…nificant dead code that could be removed.
  • Loading branch information...
commit ce2700ecb999315b44464788a0bf33a47b8b7334 1 parent a30a30c
Kris Zyp authored October 03, 2012

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 4  List.js
  2. 2  Selection.js
4  List.js
@@ -618,7 +618,7 @@ function(arrayUtil, kernel, declare, listen, has, miscUtil, TouchScroll, hasClas
618 618
 			return this.row(move(row, steps || 1, "dgrid-row", visible));
619 619
 		},
620 620
 		
621  
-		scrollTo: TouchScroll ? function(){
  621
+		scrollTo: has("touch") ? function(){
622 622
 			// If TouchScroll is the superclass, defer to its implementation.
623 623
 			return this.inherited(arguments);
624 624
 		} : function(options){
@@ -631,7 +631,7 @@ function(arrayUtil, kernel, declare, listen, has, miscUtil, TouchScroll, hasClas
631 631
 			}
632 632
 		},
633 633
 		
634  
-		getScrollPosition: TouchScroll ? function(){
  634
+		getScrollPosition: has("touch") ? function(){
635 635
 			// If TouchScroll is the superclass, defer to its implementation.
636 636
 			return this.inherited(arguments);
637 637
 		} : function(){
2  Selection.js
@@ -140,7 +140,7 @@ return declare([List], {
140 140
 			grid._handleSelect(event, this);
141 141
 		}
142 142
 		
143  
-		if(touchUtil){
  143
+		if(has("touch")){
144 144
 			// listen for touch taps if available
145 145
 			on(this.contentNode, touchUtil.selector(selector, touchUtil.tap), function(evt){
146 146
 				grid._handleSelect(evt, this);

0 notes on commit ce2700e

Please sign in to comment.
Something went wrong with that request. Please try again.