]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Fixed #3194: Prevent exposure of internal methods.
authorScott González <scott.gonzalez@gmail.com>
Sat, 16 Aug 2008 14:19:52 +0000 (14:19 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sat, 16 Aug 2008 14:19:52 +0000 (14:19 +0000)
ui/ui.accordion.js

index 4df9edea952dddadd8dfe2abbbd80f4753a85f2b..2558fc4c1df3f874c9bb1d088b3be52f22370931 100644 (file)
@@ -13,7 +13,7 @@
 (function($) {
 
 $.widget("ui.accordion", {
-       init: function() {
+       _init: function() {
                var options = this.options;
                
                if ( options.navigation ) {
@@ -111,7 +111,7 @@ function completed(cancel) {
                        overflow: ""
                });
        }
-       instance.trigger('change', null, options.data);
+       instance._trigger('change', null, options.data);
 }
 
 function toggle(toShow, toHide, data, clickedActive, down) {