Skip to content

Commit

Permalink
Seed and Loader build
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jan 11, 2013
1 parent 60c70f9 commit 0b59289
Show file tree
Hide file tree
Showing 35 changed files with 3,033 additions and 2,940 deletions.
10 changes: 5 additions & 5 deletions build/features/features-coverage.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/features/features-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ Contains the core of YUI's feature test architecture.
*/

Y.mix(Y.namespace('Features'), {

/**
* Object hash of all registered feature tests
* @property tests
* @type Object
*/
tests: feature_tests,

/**
* Add a test to the system
*
*
* ```
* Y.Features.add("load", "1", {});
* ```
*
*
* @method add
* @param {String} cat The category, right now only 'load' is supported
* @param {String} name The number sequence of the test, how it's reported in the URL or config: 1, 2, 3
Expand Down
8 changes: 4 additions & 4 deletions build/features/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ Contains the core of YUI's feature test architecture.
*/

Y.mix(Y.namespace('Features'), {

/**
* Object hash of all registered feature tests
* @property tests
* @type Object
*/
tests: feature_tests,

/**
* Add a test to the system
*
*
* ```
* Y.Features.add("load", "1", {});
* ```
*
*
* @method add
* @param {String} cat The category, right now only 'load' is supported
* @param {String} name The number sequence of the test, how it's reported in the URL or config: 1, 2, 3
Expand Down
57 changes: 32 additions & 25 deletions build/simpleyui/simpleyui-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ utilities for the library.
@submodule yui-base
**/

/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
Expand Down Expand Up @@ -505,7 +506,7 @@ proto = {
@method _setup
@private
**/
_setup: function(o) {
_setup: function() {
var i, Y = this,
core = [],
mods = YUI.Env.mods,
Expand Down Expand Up @@ -909,7 +910,6 @@ with any configuration info required for the module.
callback = args[args.length - 1],
Y = this,
i = 0,
a = [],
name,
Env = Y.Env,
provisioned = true;
Expand Down Expand Up @@ -1001,7 +1001,7 @@ with any configuration info required for the module.
this._attach(['yui-base']);
}

var len, loader, handleBoot, handleRLS,
var len, loader, handleBoot,
Y = this,
G_ENV = YUI.Env,
mods = G_ENV.mods,
Expand Down Expand Up @@ -1498,13 +1498,13 @@ Y.log('Fetching loader: ' + config.base + config.loaderPath, 'info', 'yui');
* Set a method to be called when `Get.script` is called in Node.js
* `Get` will open the file, then pass it's content and it's path
* to this method before attaching it. Commonly used for code coverage
* instrumentation. <strong>Calling this multiple times will only
* attach the last hook method</strong>. This method is only
* instrumentation. <strong>Calling this multiple times will only
* attach the last hook method</strong>. This method is only
* available in Node.js.
* @method setLoadHook
* @static
* @param {Function} fn The function to set
* @param {String} fn.data The content of the file
* @param {String} fn.data The content of the file
* @param {String} fn.path The file path of the file
*/
YUI.setLoadHook = function(fn) {
Expand All @@ -1514,7 +1514,7 @@ Y.log('Fetching loader: ' + config.base + config.loaderPath, 'info', 'yui');
* Load hook for `Y.Get.script` in Node.js, see `YUI.setLoadHook`
* @method _getLoadHook
* @private
* @param {String} data The content of the file
* @param {String} data The content of the file
* @param {String} path The file path of the file
*/
YUI._getLoadHook = null;
Expand Down Expand Up @@ -2459,6 +2459,7 @@ pass `true` as the value of the _force_ parameter.
function YArray(thing, startIndex, force) {
var len, result;

/*jshint expr: true*/
startIndex || (startIndex = 0);

if (force || YArray.test(thing)) {
Expand Down Expand Up @@ -2831,13 +2832,15 @@ string `[object Object]` when used as a cache key.
@for YUI
**/
Y.cached = function (source, cache, refetch) {
/*jshint expr: true*/
cache || (cache = {});

return function (arg) {
var key = arguments.length > 1 ?
Array.prototype.join.call(arguments, CACHED_DELIMITER) :
String(arg);


/*jshint eqeqeq: false*/
if (!(key in cache) || (refetch && cache[key] == refetch)) {
cache[key] = source.apply(source, arguments);
}
Expand Down Expand Up @@ -3917,6 +3920,7 @@ Y.UA.compareVersions = function (a, b) {
aPart = parseInt(aParts[i], 10);
bPart = parseInt(bParts[i], 10);

/*jshint expr: true*/
isNaN(aPart) && (aPart = 0);
isNaN(bPart) && (bPart = 0);

Expand Down Expand Up @@ -5282,21 +5286,21 @@ Contains the core of YUI's feature test architecture.
*/

Y.mix(Y.namespace('Features'), {

/**
* Object hash of all registered feature tests
* @property tests
* @type Object
*/
tests: feature_tests,

/**
* Add a test to the system
*
*
* ```
* Y.Features.add("load", "1", {});
* ```
*
*
* @method add
* @param {String} cat The category, right now only 'load' is supported
* @param {String} name The number sequence of the test, how it's reported in the URL or config: 1, 2, 3
Expand Down Expand Up @@ -5766,7 +5770,8 @@ YUI.add('yui-log', function (Y, NAME) {

/**
* Provides console log capability and exposes a custom event for
* console implementations. This module is a `core` YUI module, <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
* console implementations. This module is a `core` YUI module,
* <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
*
* @module yui
* @submodule yui-log
Expand Down Expand Up @@ -5825,17 +5830,17 @@ INSTANCE.log = function(msg, cat, src, silent) {
m = (src) ? src + ': ' + msg : msg;
if (Y.Lang.isFunction(c.logFn)) {
c.logFn.call(Y, msg, cat, src);
} else if (typeof console != UNDEFINED && console.log) {
} else if (typeof console !== UNDEFINED && console.log) {
f = (cat && console[cat] && (cat in LEVELS)) ? cat : 'log';
console[f](m);
} else if (typeof opera != UNDEFINED) {
} else if (typeof opera !== UNDEFINED) {
opera.postError(m);
}
}

if (publisher && !silent) {

if (publisher == Y && (!publisher.getEvent(LOGEVENT))) {
if (publisher === Y && (!publisher.getEvent(LOGEVENT))) {
publisher.publish(LOGEVENT, {
broadcast: 2
});
Expand Down Expand Up @@ -5875,7 +5880,8 @@ INSTANCE.message = function() {
YUI.add('yui-later', function (Y, NAME) {

/**
* Provides a setTimeout/setInterval wrapper. This module is a `core` YUI module, <a href="../classes/YUI.html#method_later">it's documentation is located under the YUI class</a>.
* Provides a setTimeout/setInterval wrapper. This module is a `core` YUI module,
* <a href="../classes/YUI.html#method_later">it's documentation is located under the YUI class</a>.
*
* @module yui
* @submodule yui-later
Expand Down Expand Up @@ -6367,21 +6373,21 @@ Contains the core of YUI's feature test architecture.
*/

Y.mix(Y.namespace('Features'), {

/**
* Object hash of all registered feature tests
* @property tests
* @type Object
*/
tests: feature_tests,

/**
* Add a test to the system
*
*
* ```
* Y.Features.add("load", "1", {});
* ```
*
*
* @method add
* @param {String} cat The category, right now only 'load' is supported
* @param {String} name The number sequence of the test, how it's reported in the URL or config: 1, 2, 3
Expand Down Expand Up @@ -20247,7 +20253,8 @@ YUI.add('yui-log', function (Y, NAME) {

/**
* Provides console log capability and exposes a custom event for
* console implementations. This module is a `core` YUI module, <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
* console implementations. This module is a `core` YUI module,
* <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
*
* @module yui
* @submodule yui-log
Expand Down Expand Up @@ -20306,17 +20313,17 @@ INSTANCE.log = function(msg, cat, src, silent) {
m = (src) ? src + ': ' + msg : msg;
if (Y.Lang.isFunction(c.logFn)) {
c.logFn.call(Y, msg, cat, src);
} else if (typeof console != UNDEFINED && console.log) {
} else if (typeof console !== UNDEFINED && console.log) {
f = (cat && console[cat] && (cat in LEVELS)) ? cat : 'log';
console[f](m);
} else if (typeof opera != UNDEFINED) {
} else if (typeof opera !== UNDEFINED) {
opera.postError(m);
}
}

if (publisher && !silent) {

if (publisher == Y && (!publisher.getEvent(LOGEVENT))) {
if (publisher === Y && (!publisher.getEvent(LOGEVENT))) {
publisher.publish(LOGEVENT, {
broadcast: 2
});
Expand Down
Loading

0 comments on commit 0b59289

Please sign in to comment.