In 3.4.0 we started the process of shifting some of Loader's logic around, to not only make it more performant, but to make it more robust and easier to use in other places (like on the server ). We will be rolling out more changes in future revisions, but I wanted to take some time and explain what was changed, why it was changed and how it may impact developers. For the majority of use-cases, developers will notice nothing different, except that things are a little faster and their requirement downloads are a little smaller.
- http://heyfavor.com, http://nextdoor.com, http://yuilibrary.com
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
YUI().use("datasource", "yui2-datatable", "yui2-paginator", function(Y) { | |
var YAHOO = Y.YUI2; | |
/* Compat for 3.0 */ | |
Y.DataSource.Local.issueCallback = function(e) { | |
var callback = e.callback, | |
error = e.error, | |
params = (error) ? [e.request, {error:true}] : [e.request,e.response], | |
scope = e.callback.scope; |
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
// Include the AutoComplete CSS and JS files | |
<style type="text/css"> | |
<!-- Include the following AutoComplete CSS overrides --> | |
.yui-skin-sam .yui-ac {position:absolute;} | |
.yui-skin-sam .yui-ac-input {position:static;} | |
</style> |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>DT2 + Tabs3 + resizeable columns</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.1/build/datatable/assets/skins/sam/datatable.css" /> | |
<script type="text/javascript" charset="utf-8" | |
src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"> |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
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
[yui@yuivm] ~ $ sync-yui | |
Updating your virtual machine.. | |
If anything goes wrong, logs are written to: /tmp/yui-sync.log | |
Updating system configuration/sbin/mount.vboxsf: mounting failed with the error: | |
Protocol error | |
[done] | |
Updating Nginx configuration [done] | |
Updating (n) [done] | |
Updating Node (this may take a while if we need to compile a new version) |
In 3.4.0 we started the process of shifting some of Loader's logic around, to not only make it more performant, but to make it more robust and easier to use in other places (like on the server). We will be rolling out more changes in future revisions, but I wanted to take some time and explain what was changed, why it was changed and how it may impact developers. For the majority of use-cases, developers will notice nothing different, except that things are a little faster and their requirement downloads are a little smaller.