Created
          April 4, 2011 14:21 
        
      - 
      
- 
        Save JKirchartz/901715 to your computer and use it in GitHub Desktop. 
    Extend xuiJS with jQuery style next & is functions
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | x$.extend({ | |
| 'next': function() { | |
| var n = this[0]; | |
| do{n = n.nextSibling;} | |
| while (n && n.nodeType != 1); | |
| return x$(n); | |
| }, | |
| 'is': function(sr) { | |
| sr = sr.toUpperCase(); | |
| var n = this[0]; | |
| if(sr == n.nodeName){ | |
| return x$(n); | |
| } | |
| return false; | |
| } | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
More Info at http://www.jkirchartz.com/2011/04/xuijs-for-mobile-development-2.html