Skip to content

Commit

Permalink
Gallery Build Tag: gallery-2010.03.30-17-26
Browse files Browse the repository at this point in the history
  • Loading branch information
YUI Builder committed Mar 30, 2010
1 parent 7095718 commit d78bc68
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/gallery-effects/gallery-effects-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/gallery-resource/gallery-resource-debug.js
Expand Up @@ -338,4 +338,4 @@ YUI.add('gallery-resource', function(Y) {
Y.Resource = Resource;


}, 'gallery-2010.03.29-18-07' ,{requires:['base-base','io-base','json','substitute']});
}, 'gallery-2010.03.30-17-26' ,{requires:['base-base', 'io-base', 'querystring-stringify-simple', 'substitute', 'json']});
2 changes: 1 addition & 1 deletion build/gallery-resource/gallery-resource-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/gallery-resource/gallery-resource.js
Expand Up @@ -338,4 +338,4 @@ YUI.add('gallery-resource', function(Y) {
Y.Resource = Resource;


}, 'gallery-2010.03.29-18-07' ,{requires:['base-base','io-base','json','substitute']});
}, 'gallery-2010.03.30-17-26' ,{requires:['base-base', 'io-base', 'querystring-stringify-simple', 'substitute', 'json']});
120 changes: 120 additions & 0 deletions build/gallery-yquery/gallery-yquery-debug.js
@@ -0,0 +1,120 @@
YUI.add('gallery-yquery', function(Y) {



/**
* YQuery is a widget for YUI3 that simplifies implementing both jQuery and jQuery plugins into your code
*
*
*
*
* Project Home - http://kickballcreative.com/yui/modules/yquery/
* Copyright (c) 2010 Lauren Smith
* YUI BSD - http://developer.yahoo.com/yui/license.html
*
*
*/

var opts = {}, win = window, JQUERY_BASE = 'http://ajax.googleapis.com/ajax/libs/jquery/';

function YQuery( src ) {

return {

// Allows for override of the version to use
version : '1.4.2',

// Allows for override of autodetection
autodetect : true,

// Allows for override to use dev version
type : 'production',

// Undocumented but allows for override of the setTimeout function; in milliseconds
timeout : 10000,

// Undocumented but allows for overriding the callback if ever necessary
callback : null,

use : function() {

var queue = Array.prototype.slice.call( arguments, 0 );
opts.timeout = this.timeout;
opts.scope = this;

var type = ( this.type === 'production' ) ? '.min' : '';

if ( Y.Lang.isNull( this.callback ) ) { this.callback = queue.pop(); }

if ( this.autodetect || Y.Lang.isObject( this.version ) ) {

if ( Y.Lang.isArray( queue[0] ) ) { queue = queue[0]; }

if ( typeof( jQuery ) === 'undefined' && this.autodetect && ! Y.Lang.isObject( this.version ) ) {
queue.unshift( JQUERY_BASE + this.version + '/jquery' + type +'.js' );
}

if ( Y.Lang.isObject( this.version ) ) {

if ( typeof( jQuery) === 'undefined' && this.autodetect ) {

for( var i = 0; i < this.version.length; i++ ) {

var url = JQUERY_BASE + this.version[ i ].version + '/jquery' + type + '.js';

var c = ( queue.length <= 0 && i == ( this.version.length - 1 ) ) ? true : false;

opts.data = {
space : this.version[ i ].namespace,
callback : c
};

opts.onSuccess = function( d ) {
if ( ! Y.Lang.isUndefined( d.data.space ) ) { win[d.data.space] = jQuery.noConflict( true ); }
if ( d.data.callback ) { this.scope._invokeReady(); }
};
opts.onTimeout = function( d ) {
if ( ! Y.Lang.isUndefined( d.data.space ) ) { win[d.data.space] = jQuery.noConflict( true ); }
if ( d.data.callback ) { this.scope._invokeReady(); }
};

Y.Get.script( url, opts );

}

}

}

if( queue.length > 0 ) {

opts.onSuccess = function( d ) { this.scope._invokeReady(); };
opts.onTimeout = function( d ) { this.scope._invokeReady(); };

Y.Get.script( queue, opts );

}

} else {

// This gets fired if jQuery autodetect has been overridden
this._invokeReady();

}

},

_invokeReady : function() {

Y.on( 'domready', function() { this.callback(); }, this );

}

};

}

Y.YQuery = YQuery;


}, 'gallery-2010.03.30-17-26' ,{requires:['get','event']});
1 change: 1 addition & 0 deletions build/gallery-yquery/gallery-yquery-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 120 additions & 0 deletions build/gallery-yquery/gallery-yquery.js
@@ -0,0 +1,120 @@
YUI.add('gallery-yquery', function(Y) {



/**
* YQuery is a widget for YUI3 that simplifies implementing both jQuery and jQuery plugins into your code
*
*
*
*
* Project Home - http://kickballcreative.com/yui/modules/yquery/
* Copyright (c) 2010 Lauren Smith
* YUI BSD - http://developer.yahoo.com/yui/license.html
*
*
*/

var opts = {}, win = window, JQUERY_BASE = 'http://ajax.googleapis.com/ajax/libs/jquery/';

function YQuery( src ) {

return {

// Allows for override of the version to use
version : '1.4.2',

// Allows for override of autodetection
autodetect : true,

// Allows for override to use dev version
type : 'production',

// Undocumented but allows for override of the setTimeout function; in milliseconds
timeout : 10000,

// Undocumented but allows for overriding the callback if ever necessary
callback : null,

use : function() {

var queue = Array.prototype.slice.call( arguments, 0 );
opts.timeout = this.timeout;
opts.scope = this;

var type = ( this.type === 'production' ) ? '.min' : '';

if ( Y.Lang.isNull( this.callback ) ) { this.callback = queue.pop(); }

if ( this.autodetect || Y.Lang.isObject( this.version ) ) {

if ( Y.Lang.isArray( queue[0] ) ) { queue = queue[0]; }

if ( typeof( jQuery ) === 'undefined' && this.autodetect && ! Y.Lang.isObject( this.version ) ) {
queue.unshift( JQUERY_BASE + this.version + '/jquery' + type +'.js' );
}

if ( Y.Lang.isObject( this.version ) ) {

if ( typeof( jQuery) === 'undefined' && this.autodetect ) {

for( var i = 0; i < this.version.length; i++ ) {

var url = JQUERY_BASE + this.version[ i ].version + '/jquery' + type + '.js';

var c = ( queue.length <= 0 && i == ( this.version.length - 1 ) ) ? true : false;

opts.data = {
space : this.version[ i ].namespace,
callback : c
};

opts.onSuccess = function( d ) {
if ( ! Y.Lang.isUndefined( d.data.space ) ) { win[d.data.space] = jQuery.noConflict( true ); }
if ( d.data.callback ) { this.scope._invokeReady(); }
};
opts.onTimeout = function( d ) {
if ( ! Y.Lang.isUndefined( d.data.space ) ) { win[d.data.space] = jQuery.noConflict( true ); }
if ( d.data.callback ) { this.scope._invokeReady(); }
};

Y.Get.script( url, opts );

}

}

}

if( queue.length > 0 ) {

opts.onSuccess = function( d ) { this.scope._invokeReady(); };
opts.onTimeout = function( d ) { this.scope._invokeReady(); };

Y.Get.script( queue, opts );

}

} else {

// This gets fired if jQuery autodetect has been overridden
this._invokeReady();

}

},

_invokeReady : function() {

Y.on( 'domready', function() { this.callback(); }, this );

}

};

}

Y.YQuery = YQuery;


}, 'gallery-2010.03.30-17-26' ,{requires:['get','event']});

0 comments on commit d78bc68

Please sign in to comment.