This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y.HistoryHTML5.prototype._init = function (config) { | |
Y.on('popstate', this._onPopState, Y.config.win, this); | |
config = this._config = config || {}; | |
if (config && config['enableSessionFallback'] && YUI.Env.windowLoaded) { | |
this._loadSessionState(); | |
} | |
Y.HistoryHTML5.superclass._init.apply(this, arguments); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Lightweight history utility for YUI 2. Similar in purpose to the YUI Browser | |
* History Manager, but with a more flexible API, no initialization requirement, | |
* no IE6/7 support, and a much smaller footprint. | |
* | |
* @module history-lite | |
* @requires YAHOO, Event | |
* @class HistoryLite | |
* @static | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = <<<EOF | |
attribute/tests/attribute.html | |
async-queue/tests/async-queue.html | |
cache/tests/cache.html | |
cache/tests/cacheoffline.html | |
classnamemanager/tests/classnamemanager.html | |
collection/tests/arraylist.html | |
collection/tests/collection.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ValueChange Multiple Subscriptions</title> | |
</head> | |
<body> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make an HTTP request to 'get.php'. | |
Y.io('get.php', { | |
on: { | |
complete: function (id, response) { | |
var id = id, // Transaction ID. | |
data = response.responseText; // Response data. | |
// ... handle the response ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yui-utils' | |
task :default, [:file, :replace, :filter, :jsdir] do |t, args| | |
args.with_defaults( | |
:filter => nil, | |
:jsdir => nil, | |
:replace => nil | |
) | |
modules = YUIUtils.build_module_list(args.filter, args.jsdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yui-utils' | |
task :yui_modules do | |
output = YUIUtils.build_module_list() | |
#YUIUtils.output(modules) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var VC = Y.ValueChange; | |
VC._onFocus = function (e) { | |
VC._startPolling(e.currentTarget, null, e); | |
}; | |
VC._onSubscribe = function (node, subscription, notifier) { | |
var stamp = Y.stamp(node), | |
notifiers = VC._notifiers[stamp]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Simple YUI combo handler using NodeJS and Express. Stick a caching and | |
* compressing proxy in front of this and you're ready to rock in production. | |
* | |
* Copyright (c) 2010 Ryan Grove <ryan@wonko.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L.trimLeft = String.prototype.trimLeft ? function (s) { | |
return s.trimLeft(); | |
} : function (s) { | |
return s.replace(/^\s+/, ''); | |
}; | |
L.trimRight = String.prototype.trimRight ? function (s) { | |
return s.trimRight(); | |
} : function (s) { | |
return s.replace(/\s+$/, ''); |