Skip to content

Loading…

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

Merged
merged 1 commit into from

2 participants

@kriszyp

...icant dead code that could be removed.

@SitePenKenFranqueiro SitePenKenFranqueiro merged commit ce2700e into SitePen:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2012
  1. @kriszyp

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

    kriszyp committed
    …nificant dead code that could be removed.
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);
Something went wrong with that request. Please try again.