Permalink
Browse files

updating repo

  • Loading branch information...
2 parents 192e690 + f2933ac commit 6585932f7cd7c8671f489196df975ec8a390872b @caridy committed Oct 16, 2012
Showing 3,613 changed files with 601,579 additions and 7,290 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -12,18 +12,19 @@ var use_nonzero_empty_div = (0 < Y.UA.ie && Y.UA.ie < 8),
* Provides option to always force at least one item to be open.</p>
*
* @module gallery-accordion-horiz-vert
+ * @main gallery-accordion-horiz-vert
*/
/**
* <p>An accordion can be constructed from existing markup or from strings
* containing HTML. Existing markup can be provided either by setting
- * <code>contentBox</code> or by specifying CSS selectors. See the
- * <code>titles</code> and <code>sections</code> attributes.</p>
+ * `contentBox` or by specifying CSS selectors. See the `titles` and
+ * `sections` attributes.</p>
*
- * <p>When constructing from existing markup via <code>contentBox</code>,
- * use an unordered list (&lt;ul&gt;). Each item must contain two
- * &lt;div&gt;'s. The first one is used as the section title, and the
- * second one is used as the section content.</p>
+ * <p>When constructing from existing markup via `contentBox`, use an
+ * unordered list (&lt;ul&gt;). Each item must contain two &lt;div&gt;'s.
+ * The first one is used as the section title, and the second one is used
+ * as the section content.</p>
*
* <p>Animation is optional. If the anim module is not available,
* animation is automatically turned off.</p>
@@ -43,7 +44,6 @@ var use_nonzero_empty_div = (0 < Y.UA.ie && Y.UA.ie < 8),
* @constructor
* @param config {Object} Widget configuration
*/
-
function Accordion(config)
{
config = config || {};
@@ -76,7 +76,7 @@ Accordion.ATTRS =
/**
* Whether or not the accordion is horizontal.
*
- * @config horizontal
+ * @attribute horizontal
* @type {boolean}
* @default false
* @writeonce
@@ -92,7 +92,7 @@ Accordion.ATTRS =
* of strings containing markup. This is used to define the initial
* set of section titles.
*
- * @config titles
+ * @attribute titles
* @type {String|Array}
* @writeonce
*/
@@ -106,7 +106,7 @@ Accordion.ATTRS =
* supplied title is a node. (If the supplied title is markup, it is
* always inserted inside the default title container.)
*
- * @config replaceTitleContainer
+ * @attribute replaceTitleContainer
* @type {boolean}
* @default true
*/
@@ -121,7 +121,7 @@ Accordion.ATTRS =
* of strings containing markup. This is used to define the initial
* set of section contents.
*
- * @config sections
+ * @attribute sections
* @type {String|Array}
* @writeonce
*/
@@ -135,7 +135,7 @@ Accordion.ATTRS =
* the supplied title is a node. (If the supplied content is markup,
* it is always inserted inside the default section container.)
*
- * @config replaceSectionContainer
+ * @attribute replaceSectionContainer
* @type {boolean}
* @default true
*/
@@ -149,7 +149,7 @@ Accordion.ATTRS =
* Whether or not to allow all sections to be closed at the same time.
* If not, at least one section will always be open.
*
- * @config allowAllClosed
+ * @attribute allowAllClosed
* @type {boolean}
* @default false
*/
@@ -169,7 +169,7 @@ Accordion.ATTRS =
* Whether or not to allow multiple sections to be open at the same
* time. If not, at most one section at a time will be open.
*
- * @config allowMultipleOpen
+ * @attribute allowMultipleOpen
* @type {boolean}
* @default false
*/
@@ -182,7 +182,7 @@ Accordion.ATTRS =
/**
* Whether or not to animate the initial rendering of the widget.
*
- * @config animateRender
+ * @attribute animateRender
* @type {boolean}
* @default false
*/
@@ -197,7 +197,7 @@ Accordion.ATTRS =
/**
* Whether or not to animate insertion and removal of sections.
*
- * @config animateInsertRemove
+ * @attribute animateInsertRemove
* @type {boolean}
* @default true
*/
@@ -211,7 +211,7 @@ Accordion.ATTRS =
/**
* Whether or not to animate opening and closing of sections.
*
- * @config animateOpenClose
+ * @attribute animateOpenClose
* @type {boolean}
* @default true
*/
@@ -225,7 +225,7 @@ Accordion.ATTRS =
/**
* Duration of all animations.
*
- * @config animateDuration
+ * @attribute animateDuration
* @type {int}
* @default whatever Y.Anim default is
*/
@@ -241,7 +241,7 @@ Accordion.ATTRS =
/**
* Easing applied to all animations.
*
- * @config animateEasing
+ * @attribute animateEasing
* @type {function}
* @default whatever Y.Anim default is
*/
@@ -259,12 +259,12 @@ Accordion.HTML_PARSER =
{
titles: function(content_box)
{
- return content_box.all('li > div:nth-child(1)');
+ return content_box.all('> li > div:nth-child(1)');
},
sections: function(content_box)
{
- return content_box.all('li > div:nth-child(2)');
+ return content_box.all('> li > div:nth-child(2)');
}
};
@@ -419,10 +419,11 @@ Y.extend(Accordion, Y.Widget,
Y.log('ignoring titles & sections', 'info', 'Accordion');
}
- this.get('contentBox').all('> li').remove();
+ this.get('contentBox').all('> li').remove(true);
},
/**
+ * @method getSectionCount
* @return {int} total number of sections
*/
getSectionCount: function()
@@ -431,6 +432,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method getTitle
* @param index {int} the section index
* @return {Node} the container for the section title
*/
@@ -443,6 +445,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Sets the contents of the specified section title.
*
+ * @method setTitle
* @param index {int} the section index
* @param title {String|Node} the title content
*/
@@ -498,6 +501,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method getSection
* @param index {int} the section index
* @return {Node} the container for the section content
*/
@@ -510,6 +514,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Sets the contents of the specified section.
*
+ * @method setSection
* @param index {int} the section index
* @param content {String|Node} the section content
*/
@@ -563,6 +568,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method _getClip
* @protected
* @param index {int} the section index
* @return {Node} the clipping container for the section content
@@ -576,6 +582,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Prepends the section to the accordion.
*
+ * @method prependSection
* @param title {String|Node} the section title content
* @param content {String|Node} the section content
*/
@@ -589,6 +596,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Appends the section to the accordion.
*
+ * @method appendSection
* @param title {String|Node} the section title content
* @param content {String|Node} the section content
*/
@@ -602,6 +610,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Inserts the section into the accordion at the specified location.
*
+ * @method insertSection
* @param index {int} the insertion index
* @param title {String|Node} the section title content
* @param content {String|Node} the section content
@@ -727,6 +736,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Removes the specified section.
*
+ * @method removeSection
* @param index {int} the section index
*/
removeSection: function(
@@ -800,6 +810,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method findSection
* @param {String|Node} any element inside the section or title
* @return {int} the index of the containing section, or -1 if not found
*/
@@ -824,6 +835,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method isSectionOpen
* @return {boolean} <code>true</code> if the section is open
*/
isSectionOpen: function(
@@ -835,6 +847,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Open the specified section.
*
+ * @method openSection
* @param index {int} the section index
*/
openSection: function(
@@ -849,6 +862,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Close the specified section.
*
+ * @method closeSection
* @param index {int} the section index
*/
closeSection: function(
@@ -861,6 +875,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method allSectionsOpen
* @return {boolean} <code>true</code> if all sections are open
*/
allSectionsOpen: function()
@@ -878,6 +893,7 @@ Y.extend(Accordion, Y.Widget,
},
/**
+ * @method allSectionsClosed
* @return {boolean} <code>true</code> if all sections are closed
*/
allSectionsClosed: function()
@@ -897,6 +913,7 @@ Y.extend(Accordion, Y.Widget,
/**
* Show/hide the section content.
*
+ * @method toggleSection
* @param index {int} the section index
*/
toggleSection: function(
@@ -1011,6 +1028,8 @@ Y.extend(Accordion, Y.Widget,
/**
* Open all sections, if possible.
+ *
+ * @method openAllSections
*/
openAllSections: function()
{
@@ -1029,6 +1048,8 @@ Y.extend(Accordion, Y.Widget,
/**
* Close all sections, if possible.
+ *
+ * @method closeAllSections
*/
closeAllSections: function()
{
@@ -1118,8 +1139,9 @@ Y.Accordion = Accordion;
* <p>If/when the widget is given a fixed size, all animations are turned
* off.</p>
*
- * @namespace Plugin
* @class FixedSizeAccordion
+ * @namespace Plugin
+ * @constructor
*/
function FixedSizeAccordionPlugin()
{
@@ -1245,4 +1267,4 @@ Y.namespace("Plugin");
Y.Plugin.FixedSizeAccordion = FixedSizeAccordionPlugin;
-}, 'gallery-2011.07.06-19-30' ,{skinnable:true, optional:['anim-base'], requires:['widget','selector-css3','plugin','gallery-dimensions']});
+}, 'gallery-2012.05.23-19-56' ,{skinnable:true, optional:['anim-base'], requires:['widget','selector-css3','plugin','gallery-dimensions']});
Oops, something went wrong.

0 comments on commit 6585932

Please sign in to comment.