ÿþ/ *  
   *   j Q u e r y   P l u g i n :   e x t e r n a l I n t e r f a c e  
   *   V e r s i o n   1 . 0  
   *  
   *   C o p y r i g h t   ( c )   2 0 1 0   D a v i d   C o m e a u   ( h t t p : / / w w w . d a v e c o m e a u . n e t )  
   *   L i c e n s e d   j o i n t l y   u n d e r   t h e   G P L   a n d   M I T   l i c e n s e s .  
   *  
   * /  
  
 ( f u n c t i o n ( $ )  
 {  
 	 $ . f n . e x t e r n a l I n t e r f a c e   =   f u n c t i o n ( a r g s )  
 	 {  
 	 	 t h i s . e a c h ( f u n c t i o n ( )  
 	 	 {  
 	 	 	 i f ( t y p e o f ( a r g s . m e t h o d )   ! =   ' u n d e f i n e d ' )  
 	 	 	 {  
 	 	 	 	 t r y  
 	 	 	 	 {  
 	 	 	 	 	 i f ( t y p e o f ( a r g s . a r g s )   ! =   ' u n d e f i n e d ' )  
 	 	 	 	 	 {  
 	 	 	 	 	 	 v a r   d a t a   =   t h i s [ a r g s . m e t h o d ] ( a r g s . a r g s ) ;  
 	 	 	 	 	 }  
 	 	 	 	 	 e l s e  
 	 	 	 	 	 {  
 	 	 	 	 	 	 v a r   d a t a   =   t h i s [ a r g s . m e t h o d ] ( ) ;  
 	 	 	 	 	 }  
 	 	 	 	 	  
 	 	 	 	 	 i f ( t y p e o f ( a r g s . s u c c e s s )   ! =   ' u n d e f i n e d ' )  
 	 	 	 	 	 {  
 	 	 	 	 	 	 a r g s . s u c c e s s ( d a t a ) ;  
 	 	 	 	 	 }  
 	 	 	 	 }  
 	 	 	 	 c a t c h ( e r r o r )  
 	 	 	 	 {  
 	 	 	 	 	 i f ( t y p e o f ( a r g s . e r r o r )   ! =   ' u n d e f i n e d ' )  
 	 	 	 	 	 {  
 	 	 	 	 	 	 a r g s . e r r o r ( e r r o r ) ;  
 	 	 	 	 	 }  
 	 	 	 	 }  
 	 	 	 }  
 	 	 } ) ;  
 	  
 	 	 r e t u r n   t h i s ;  
 	 } ;  
 } ) ( j Q u e r y ) ; 
