YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.15-20-00'
}).use('gallery-accordion', function(Y) {
var item1, item2, item3, accordion;
accordion = new Y.Accordion({
srcNode: "#acc1",
useAnimation: true,
collapseOthersOnExpand: true
});
accordion.render();
item1 = new Y.AccordionItem( {
label: "Item1, added from script",
expanded: true,
id: "dynamicItem1",
contentHeight: {
method: "fixed",
height: 80
},
closable: true
} );
item1.set( "bodyContent", "This is the body of the item, added dynamically to accordion.<br>Content height has been set as \"fixed, 80px\"." );
accordion.addItem( item1 );
item2 = new Y.AccordionItem( {
label: "Item2, added from script",
expanded: true,
id: "dynamicItem2",
contentHeight: {
method: "stretch"
}
} );
item2.set( "bodyContent", "This is the body of the item, added dynamically to accordion, before item1.<br>Content height has been set as \"stretch\"." );
accordion.addItem( item2, item1 );
item3 = new Y.AccordionItem( {
label: "Item3, added from script",
expanded: true,
alwaysVisible: true,
id: "dynamicItem3",
contentHeight: {
method: "auto"
}
} );
item3.set( "bodyContent", "<div style='position:relative;'>This is the body of the item, added dynamically to accordion.<br>Content height has been set as \"auto\".</div>" );
accordion.addItem( item3 );
});/home/y/libexec/ant/bin/ant all
Buildfile: build.xml
[echo] Starting Build For gallery-accordion
clean:
init:
[mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp
[echo] Starting Build For gallery-accordion
-lint-server:
[echo] Starting Build For gallery-accordion
-node:
[echo] For faster builds, install Node.js.
-concatdebug:
[copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/ant
[delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/ant
-registerdebug:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp
-prependdebug:
-appenddebug:
builddebug:
-createcore:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp
-loggerregex:
buildcore:
-rollupjs:
-concatskins:
[copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/ant
[delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/ant
[yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/assets/skins/sam/gallery-accordion.css
[yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/assets/skins/sam/gallery-accordion.css
-buildskins:
-rollupcss:
buildskins:
-buildlangs:
-rolluplangs:
buildlangs:
build:
build-coverage:
[echo] Creating coverage file for: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/gallery-accordion.js
[move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp
[move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp
minify:
[yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/gallery-accordion.js
[yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/gallery-accordion-min.js
lint:
[echo] Using Rhino. Install nodejs to improve jslint speed, or skip with -Dlint.skip=true
[java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/gallery-accordion-coverage.js
[java]
[java]
[java] 421, 1: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
[java] for( itemHandle in itemHandles ){
[java]
[java] 1446, 1: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
[java] for( item in forCollapsing ){
[java]
[java] 1461, 1: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
[java] for( item in forExpanding ){
[java]
[java] 1508, 1: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
[java] for( itemData in forCollapsing ){
[java]
[java] 1519, 1: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
[java] for( itemData in forExpanding ){
[java]
[java]
[java]
[java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-accordion/build_tmp/gallery-accordion.js
[java] - OK
local:
deploybuild:
[copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-accordion
deployassets:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-accordion/assets
deployskins:
[copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-accordion/assets/skins/sam
[copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-accordion/assets/skins/sam
deploylang:
deploydocs:
deploy:
all:
BUILD SUCCESSFUL
Total time: 13 seconds
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info