r2457 - added aria- show/hide helper method

r2457 - added aria- show/hide helper method


Author: a.farkas.pm
Date: Wed Apr 15 14:23:45 2009
New Revision: 2457
Modified:
branches/experimental/a11y/ui.a11y.ext.js
Log:
added aria- show/hide helper method
Modified: branches/experimental/a11y/ui.a11y.ext.js
==============================================================================
--- branches/experimental/a11y/ui.a11y.ext.js    (original)
+++ branches/experimental/a11y/ui.a11y.ext.js    Wed Apr 15 14:23:45 2009
@@ -135,28 +135,21 @@
        return test;
    })();
    
-    /*
-     * Aria-Click
-     */
+    /* aria-hide/show */
+    
+    $.fn.ariaShow = function(){
+        
+        $.fn.show.apply(this, arguments);
+        return this
+            .attr({'aria-hidden': 'false'});
+    };
+    
+    $.fn.ariaHide = function(){
+        $.fn.hide.apply(this, arguments);
+        return this
+            .attr({'aria-hidden': 'true'});
+    };
    
-    $.event.special.ariaClick = {
-            setup: function(){
-                $(this)
-                    .bind('_internalemchange', $.event.special.emchange.handler);
- return true;
- },
-            teardown: function(){
-
-                $(this).unbind('_internalemchange', $.event.special.emchange.handler);
- return true;
- },
- handler: function(e){
- e.type = 'emchange';
-                e.emPx = emPx;
-                e.oldEmPx = oldVal;
- return jQuery.event.handle.apply(this, arguments);
- }
-        };
    /*
     * SR-Update
     */