• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    Build Tag: gallery-2012.08.22-20-00

    Return to NetMusician PJAX Plus

    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2013.05.10-00-54'
    }).use('gallery-nmpjaxplus', function(Y) {
    	var PjaxPlus = new Y.PjaxPlus({
    		findLinksIn:document.body,  // look for links to init within this region
    		container:'#page',  // YUI PJAX argument - see http://yuilibrary.com/yui/docs/pjax/
    		contentSelector:'#main',  // YUI PJAX argument - see http://yuilibrary.com/yui/docs/pjax/
    		omitLinkClass:'noajax',  // skip initing this widget on links assigned to this class
    		permittedFileExts:['php'],  // in addition to REST-like URLs that do not have file extensions, init URLs with these extensions
    		startCallbackFunc:Y.bind(startPjaxCallback),  // callback that is triggered before content is loaded
    		callbackFunc:Y.bind(pjaxCallback)  // callback triggered after content has been loaded
    	});
    	PjaxPlus.initAjaxLinks();  // initialize PjaxPlus
     
    	function startPjaxCallback(payload) {
    		// this callback is triggered before page loads.
    		// You can set CSS classes that will enable progress bars to indicate that
    		// new content is being loaded. Here, the opacity is set on the content region
     
    		Y.one('#page').setStyle('opacity', 0.5);
    	}
     
    	function pjaxCallback(payload) {
    		// this callback is triggered once the new content has been loaded.
    		// You can do stuff such as setting classes on your body tag, or reiniting
    		// various other Javascript widgets and controls on the page, as necessary
     
    		var responseHTML = Y.Node.create(payload.responseText);  // YUI node object of loaded content
     
    		Y.one('#page').setStyle('opacity', '');
    		//initJSContent();
    	}
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-nmpjaxplus
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp
         [echo] Starting Build For gallery-nmpjaxplus
    
    -lint-server:
         [echo] Starting Build For gallery-nmpjaxplus
    
    -node:
         [echo] For faster builds, install Node.js.
    
    -concatdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp
    
    -prependdebug:
    
    -appenddebug:
    
    builddebug:
    
    -createcore:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
    
    -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-nmpjaxplus/build_tmp/gallery-nmpjaxplus.js
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp/gallery-nmpjaxplus.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] (this.get("html5support")){ ---> var  <--- goodext=false;Y.all("a:not(."+
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ("pathname").split(///); ---> var  <--- pathnameidx=pathnamearr.length-1;var filename
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] var pathnameidx=pathnamearr.length-1; ---> var  <--- filename=pathnamearr[pathnameidx];if(!
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] "yui3-pjax");}},this); ---> var  <--- PjaxLoader=new Y.Pjax({addPjaxParam:
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] .get("pathname")!=="undefined"){ ---> var  <--- historyhash=e.target.get("pathname")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ,this);}return;}} ---> var  <--- goodext=false;if(typeofe.target
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] url:"/"});}else{ ---> var  <--- pathnamearr=e.target.get("pathname")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ("pathname").split(///); ---> var  <--- pathnameidx=pathnamearr.length-1;var filename
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] var pathnameidx=pathnamearr.length-1; ---> var  <--- filename=pathnamearr[pathnameidx];if(!
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] +configObj.queryString:configObj.path; ---> var  <--- cfg={timeout:this.get("timeout"
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-nmpjaxplus/build_tmp/gallery-nmpjaxplus-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-nmpjaxplus/build_tmp/gallery-nmpjaxplus.js
         [java]  
         [java] 
         [java] 	12, 96: Bad escapement.
         [java] 	this.domain = new RegExp('^(http|https)://' + window.location.hostname.replace('.','.'));
         [java] 
         [java] 	39, 54: Bad escapement.
         [java] 	var thisregex = new RegExp('.' + ext + '$');
         [java] 
         [java] 	73, 8: Mixed spaces and tabs.
         [java] 	url:e.originEvent.target.get('href'),
         [java] 
         [java] 	88, 8: Mixed spaces and tabs.
         [java] 	url:clickedTarget.get('href'),
         [java] 
         [java] 	128, 10: Mixed spaces and tabs.
         [java] 	url:e.target.get('href'),
         [java] 
         [java] 	159, 58: Bad escapement.
         [java] 	var thisregex = new RegExp('.' + ext + '$');
         [java] 
         [java] 	174, 45: 'historyhash' used out of scope.
         [java] 	historyhash:historyhash,
         [java] 
         [java]  
         [java] 
    
    local:
    
    deploybuild:
         [copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-nmpjaxplus
    
    deployassets:
    
    deployskins:
    
    deploylang:
    
    deploydocs:
    
    deploy:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 3 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