Skip to content
Browse files

Merge branch 'master' of yuisource.corp.yahoo.com:yui3

  • Loading branch information...
2 parents 27d03be + cdcfae2 commit 87e75f80e0ca2c84898877bdb0571709af4045d5 @sdesai sdesai committed
View
1 build/controller/controller-debug.js
@@ -578,6 +578,7 @@ Y.Controller = Y.extend(Controller, Y.Base, {
self._dispatching = self._dispatched = true;
if (!routes || !routes.length) {
+ self._dispatching = false;
return self;
}
View
2 build/controller/controller-min.js
@@ -1 +1 @@
-YUI.add("controller",function(a){var h=a.HistoryHash,e=a.Lang,b=a.QueryString,j=a.Array,f=a.HistoryBase.html5&&(!a.UA.android||a.UA.android>=3),g=a.config.win,k=g.location,i=[],d="ready";function c(){c.superclass.constructor.apply(this,arguments);}a.Controller=a.extend(c,a.Base,{html5:f,root:"",routes:[],_regexPathParam:/([:*])([\w-]+)/g,_regexUrlQuery:/\?([^#]*).*$/,_regexUrlStrip:/^https?:\/\/[^\/]*/i,initializer:function(m){var l=this;m||(m={});m.routes&&(l.routes=m.routes);e.isValue(m.root)&&(l.root=m.root);l._routes=[];j.each(l.routes,function(n){l.route(n.path,n.callback);});if(f){l._history=new a.HistoryHTML5({force:true});l._history.after("change",l._afterHistoryChange,l);}else{a.on("hashchange",l._afterHistoryChange,g,l);}l.publish(d,{defaultFn:l._defReadyFn,fireOnce:true,preventable:false});l.once("initializedChange",function(){a.once("load",function(){setTimeout(function(){l.fire(d,{dispatched:!!l._dispatched});},20);});});},destructor:function(){if(f){this._history.detachAll();}else{a.detach("hashchange",this._afterHistoryChange,g);}},dispatch:function(){this.once(d,function(){this._ready=true;if(f&&this.upgrade()){return;}else{this._dispatch(this._getPath());}});return this;},getPath:function(){return this._getPath();},hasRoute:function(l){return !!this.match(l).length;},match:function(l){return j.filter(this._routes,function(m){return l.search(m.regex)>-1;});},removeRoot:function(m){var l=this.root;m=m.replace(this._regexUrlStrip,"");if(l&&m.indexOf(l)===0){m=m.substring(l.length);}return m.charAt(0)==="/"?m:"/"+m;},replace:function(l){return this._queue(l,true);},route:function(m,n){var l=[];this._routes.push({callback:n,keys:l,path:m,regex:this._getRegex(m,l)});return this;},save:function(l){return this._queue(l);},upgrade:f?function(){var l=this._getHashPath();if(l&&l.charAt(0)==="/"){this.once(d,function(){this.replace(l);});return true;}return false;}:function(){return false;},_decode:function(l){return decodeURIComponent(l.replace(/\+/g," "));},_dequeue:function(){var l=this,m;if(!YUI.Env.windowLoaded){a.once("load",function(){l._dequeue();});return this;}m=i.shift();return m?m():this;},_dispatch:function(o){var m=this,l=m.match(o),n;m._dispatching=m._dispatched=true;if(!l||!l.length){return m;}n=m._getRequest(o);n.next=function(q){var s,r,p;if(q){a.error(q);}else{if((p=l.shift())){r=p.regex.exec(o);s=typeof p.callback==="string"?m[p.callback]:p.callback;if(r.length===p.keys.length+1){n.params=j.hash(p.keys,r.slice(1));}else{n.params=r.concat();}s.call(m,n,n.next);}}};n.next();m._dispatching=false;return m._dequeue();},_getHashPath:function(){return h.getHash().replace(this._regexUrlQuery,"");},_getPath:f?function(){return this.removeRoot(k.pathname);}:function(){return this._getHashPath()||this.removeRoot(k.pathname);},_getQuery:f?function(){return k.search.substring(1);}:function(){var m=h.getHash(),l=m.match(this._regexUrlQuery);return m&&l?l[1]:k.search.substring(1);},_getRegex:function(m,l){if(m instanceof RegExp){return m;}m=m.replace(this._regexPathParam,function(o,n,p){l.push(p);return n==="*"?"(.*?)":"([^/]*)";});return new RegExp("^"+m+"$");},_getRequest:function(l){return{path:l,query:this._parseQuery(this._getQuery())};},_joinURL:function(m){var l=this.root;if(m.charAt(0)==="/"){m=m.substring(1);}return l&&l.charAt(l.length-1)==="/"?l+m:l+"/"+m;},_parseQuery:b&&b.parse?b.parse:function(o){var p=this._decode,r=o.split("&"),n=0,m=r.length,l={},q;for(;n<m;++n){q=r[n].split("=");if(q[0]){l[p(q[0])]=p(q[1]||"");}}return l;},_queue:function(){var m=arguments,l=this;i.push(function(){if(f){if(a.UA.ios&&a.UA.ios<5){l._save.apply(l,m);}else{setTimeout(function(){l._save.apply(l,m);},1);}}else{l._dispatching=true;l._save.apply(l,m);}return l;});return !this._dispatching?this._dequeue():this;},_save:f?function(l,m){this._ready=true;this._history[m?"replace":"add"](null,{url:typeof l==="string"?this._joinURL(l):l});return this;}:function(l,m){this._ready=true;if(typeof l==="string"&&l.charAt(0)!=="/"){l="/"+l;}h[m?"replaceHash":"setHash"](l);return this;},_afterHistoryChange:function(m){var l=this;if(l._ready){l._dispatch(l._getPath());}},_defReadyFn:function(l){this._ready=true;}},{NAME:"controller"});},"@VERSION@",{optional:["querystring-parse"],requires:["array-extras","base-build","history"]});
+YUI.add("controller",function(a){var h=a.HistoryHash,e=a.Lang,b=a.QueryString,j=a.Array,f=a.HistoryBase.html5&&(!a.UA.android||a.UA.android>=3),g=a.config.win,k=g.location,i=[],d="ready";function c(){c.superclass.constructor.apply(this,arguments);}a.Controller=a.extend(c,a.Base,{html5:f,root:"",routes:[],_regexPathParam:/([:*])([\w-]+)/g,_regexUrlQuery:/\?([^#]*).*$/,_regexUrlStrip:/^https?:\/\/[^\/]*/i,initializer:function(m){var l=this;m||(m={});m.routes&&(l.routes=m.routes);e.isValue(m.root)&&(l.root=m.root);l._routes=[];j.each(l.routes,function(n){l.route(n.path,n.callback);});if(f){l._history=new a.HistoryHTML5({force:true});l._history.after("change",l._afterHistoryChange,l);}else{a.on("hashchange",l._afterHistoryChange,g,l);}l.publish(d,{defaultFn:l._defReadyFn,fireOnce:true,preventable:false});l.once("initializedChange",function(){a.once("load",function(){setTimeout(function(){l.fire(d,{dispatched:!!l._dispatched});},20);});});},destructor:function(){if(f){this._history.detachAll();}else{a.detach("hashchange",this._afterHistoryChange,g);}},dispatch:function(){this.once(d,function(){this._ready=true;if(f&&this.upgrade()){return;}else{this._dispatch(this._getPath());}});return this;},getPath:function(){return this._getPath();},hasRoute:function(l){return !!this.match(l).length;},match:function(l){return j.filter(this._routes,function(m){return l.search(m.regex)>-1;});},removeRoot:function(m){var l=this.root;m=m.replace(this._regexUrlStrip,"");if(l&&m.indexOf(l)===0){m=m.substring(l.length);}return m.charAt(0)==="/"?m:"/"+m;},replace:function(l){return this._queue(l,true);},route:function(m,n){var l=[];this._routes.push({callback:n,keys:l,path:m,regex:this._getRegex(m,l)});return this;},save:function(l){return this._queue(l);},upgrade:f?function(){var l=this._getHashPath();if(l&&l.charAt(0)==="/"){this.once(d,function(){this.replace(l);});return true;}return false;}:function(){return false;},_decode:function(l){return decodeURIComponent(l.replace(/\+/g," "));},_dequeue:function(){var l=this,m;if(!YUI.Env.windowLoaded){a.once("load",function(){l._dequeue();});return this;}m=i.shift();return m?m():this;},_dispatch:function(o){var m=this,l=m.match(o),n;m._dispatching=m._dispatched=true;if(!l||!l.length){m._dispatching=false;return m;}n=m._getRequest(o);n.next=function(q){var s,r,p;if(q){a.error(q);}else{if((p=l.shift())){r=p.regex.exec(o);s=typeof p.callback==="string"?m[p.callback]:p.callback;if(r.length===p.keys.length+1){n.params=j.hash(p.keys,r.slice(1));}else{n.params=r.concat();}s.call(m,n,n.next);}}};n.next();m._dispatching=false;return m._dequeue();},_getHashPath:function(){return h.getHash().replace(this._regexUrlQuery,"");},_getPath:f?function(){return this.removeRoot(k.pathname);}:function(){return this._getHashPath()||this.removeRoot(k.pathname);},_getQuery:f?function(){return k.search.substring(1);}:function(){var m=h.getHash(),l=m.match(this._regexUrlQuery);return m&&l?l[1]:k.search.substring(1);},_getRegex:function(m,l){if(m instanceof RegExp){return m;}m=m.replace(this._regexPathParam,function(o,n,p){l.push(p);return n==="*"?"(.*?)":"([^/]*)";});return new RegExp("^"+m+"$");},_getRequest:function(l){return{path:l,query:this._parseQuery(this._getQuery())};},_joinURL:function(m){var l=this.root;if(m.charAt(0)==="/"){m=m.substring(1);}return l&&l.charAt(l.length-1)==="/"?l+m:l+"/"+m;},_parseQuery:b&&b.parse?b.parse:function(o){var p=this._decode,r=o.split("&"),n=0,m=r.length,l={},q;for(;n<m;++n){q=r[n].split("=");if(q[0]){l[p(q[0])]=p(q[1]||"");}}return l;},_queue:function(){var m=arguments,l=this;i.push(function(){if(f){if(a.UA.ios&&a.UA.ios<5){l._save.apply(l,m);}else{setTimeout(function(){l._save.apply(l,m);},1);}}else{l._dispatching=true;l._save.apply(l,m);}return l;});return !this._dispatching?this._dequeue():this;},_save:f?function(l,m){this._ready=true;this._history[m?"replace":"add"](null,{url:typeof l==="string"?this._joinURL(l):l});return this;}:function(l,m){this._ready=true;if(typeof l==="string"&&l.charAt(0)!=="/"){l="/"+l;}h[m?"replaceHash":"setHash"](l);return this;},_afterHistoryChange:function(m){var l=this;if(l._ready){l._dispatch(l._getPath());}},_defReadyFn:function(l){this._ready=true;}},{NAME:"controller"});},"@VERSION@",{optional:["querystring-parse"],requires:["array-extras","base-build","history"]});
View
1 build/controller/controller.js
@@ -576,6 +576,7 @@ Y.Controller = Y.extend(Controller, Y.Base, {
self._dispatching = self._dispatched = true;
if (!routes || !routes.length) {
+ self._dispatching = false;
return self;
}
View
9 src/app/HISTORY.md
@@ -4,9 +4,12 @@ App Framework Change History
3.4.1
-----
-* Added a workaround for an iOS 4 bug that causes the previous URL to be
- displayed in the location bar after calling `save()` or `replace()` with a new
- URL.
+* Controller: Added a workaround for an iOS 4 bug that causes the previous URL
+ to be displayed in the location bar after calling `save()` or `replace()` with
+ a new URL.
+
+* Controller: Fixed a bug that caused the controller to get stuck in a
+ "dispatching" state if `save()` was called with no routes defined.
3.4.0
View
1 src/app/js/controller.js
@@ -576,6 +576,7 @@ Y.Controller = Y.extend(Controller, Y.Base, {
self._dispatching = self._dispatched = true;
if (!routes || !routes.length) {
+ self._dispatching = false;
return self;
}
View
1 src/common/docs/dist.json
@@ -1,6 +1,7 @@
{
"apiDocs": "http://yuilibrary.com/yui/docs/api",
+ "dist" : true,
"yuiBuildUrl" : "../build",
"yuiLocalBuildUrl": "../build",
"yuiVersion" : "@VERSION@",
View
2 src/common/docs/project.json
@@ -5,7 +5,7 @@
"yuiBuildUrl" : "build",
"yuiLocalBuildUrl": "build",
- "yuiVersion" : "3.4.0",
+ "yuiVersion" : "3.4.1",
"yuiSeedUrl" : "build/yui/yui-min.js",
"componentDefaults": {
View
BIN src/common/tests/manual/assets/images/background_components_panel_shadow_check.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
360 src/common/tests/manual/skins_jeff_proposed_css_changes.html
@@ -0,0 +1,360 @@
+<!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>(Jeff) Widget Skins Test Page</title>
+ <script src="../../../../build/yui/yui-min.js"></script>
+ <link type="text/css" rel="stylesheet" href="../../../../build/cssreset/cssreset.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/cssfonts/cssfonts.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/cssgrids/cssgrids.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/slider-base/assets/skins/night/slider-base.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/tabview/assets/skins/night/tabview.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/datatable-base/assets/skins/night/datatable-base.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/dial/assets/skins/night/dial.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/scrollview-list/assets/skins/night/scrollview-list.css">
+ <link type="text/css" rel="stylesheet" href="../../../../build/panel/assets/skins/night/panel.css" charset="utf-8">
+
+ <link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/gallery-2011.08.04-15-16/build/gallerycss-cssbutton/gallerycss-cssbutton.css" charset="utf-8">
+ <style>
+ .yui3-js-enabled .yui3-widget-loading {
+ display: none;
+ }
+
+ .yui3-panel form li {
+ list-style: none;
+ }
+
+ .yui3-panel label {
+ display: block;
+ margin-top: 1em;
+ }
+
+ .yui3-widget {
+ margin: 15px;
+ }
+
+ .yui3-tabview {
+ width: 400px;
+ }
+
+ #buttons-dir,
+ #buttons-skin {
+ margin: 0 2em;
+ }
+
+ .button-group {
+ text-align: center;
+ }
+
+ .yui3-panel {
+ position: static !important;
+ }
+
+ /* workaround site CSS */
+ .yui3-datatable th,
+ .yui3-calendar th,
+ .yui3-calendar h4 {
+ background: transparent;
+ border: none;
+ color: inherit;
+ font-size: inherit;
+ }
+
+/* Jeff CSS recommendations */
+html .yui3-skin-sam .yui3-panel-content {
+ box-shadow: 0 0 20px rgba(0,0,0,0.5);
+}
+/* un-comment this to check the panel box-shadow when over other objects
+html {
+ background: url(assets/images/background_components_panel_shadow_check.png);
+}*/
+
+html .yui3-skin-sam .yui3-scrollview-vert .yui3-scrollview-content .yui3-scrollview-item {
+ /*background-color: #151515;*/
+ border-bottom: 1px solid #cccccc;
+}
+html .yui3-skin-sam .yui3-scrollview {
+ border: solid 1px #808080;
+}
+html .yui3-skin-night .yui3-calendar-content {
+ background: #494A4A;
+ /*border: 1px solid gray;*/
+ border-radius: 5px 5px 5px 5px;
+ color: #fff;
+ font-family: "Lucida Grande","Lucida Sans",Calibri,Helvetica,Arial,sans-serif;
+ font-size: 0.8em;
+ padding: 10px;
+}
+html .yui3-skin-night .yui3-calendar-day,
+html .yui3-skin-night .yui3-calendar-prevmonth-day,
+html .yui3-skin-night .yui3-calendar-nextmonth-day {
+ background: none repeat scroll 0 0 #585959;
+ border: 1px solid #414342;
+ text-align: center;
+}
+html .yui3-skin-night .yui3-calendar-weekdayrow{
+ color:#969696;
+}
+html .yui3-skin-night .yui3-calendar-day-selected {
+ background-color: #70A4EB;
+ color: #000000;
+}
+ </style>
+
+ <body class="yui3-skin-sam">
+ <div id="skin-demo">
+ <div class="yui3-g button-group">
+ <div id="buttons-skin" class="yui3-u">
+ <button id="sam" class="yui3-button yui3-button-selected">Sam</button>
+ <button id="night" class="yui3-button">Night</button>
+ </div>
+
+ <div id="buttons-dir" class="yui3-u">
+ <button id="rtl" class="yui3-button">RTL</button>
+ <button id="ltr" class="yui3-button yui3-button-selected">LTR</button>
+ </div>
+ </div>
+ <div class="yui3-g">
+ <div class="yui3-u">
+ <div class="yui3-widget-loading" id="demo-tabview">
+ <ul>
+ <li>
+ <a href="#pork">Pork</a>
+ </li>
+ <li>
+ <a href="#meatball">Meatball</a>
+ </li>
+ <li>
+ <a href="#salami">Salami</a>
+ </li>
+ </ul>
+ <div>
+ <div id="pork">
+ <p>Pork tail short loin ground round. Spare ribs bresaola cow prosciutto. Ground round shoulder shankle venison tongue, beef ribs spare ribs salami frankfurter bacon turducken tri-tip tail ribeye pork chop. Chicken tail bacon, biltong corned beef shankle pancetta shoulder brisket pork belly ham pork bresaola pig. Kielbasa filet mignon beef ribs, brisket ham ribeye pig ground round jerky flank turkey ham hock. Bacon swine jowl, pancetta salami boudin rump venison meatloaf strip steak. Fatback shoulder beef capicola.</p>
+ </div>
+ <div id="meatball">
+ <p>Meatball cow leberkäse, tenderloin sirloin spare ribs beef ribs turkey ball tip flank pork loin fatback andouille strip steak tri-tip. Kielbasa drumstick pastrami tongue, strip steak shank tail beef ribs pork turducken pork loin pork chop. Capicola ground round tail t-bone pork chop kielbasa, chicken prosciutto bacon brisket sausage jowl. Andouille shoulder pork pig swine. Venison beef ribs turducken pork chop, sausage turkey drumstick sirloin ham swine chicken. Kielbasa pancetta t-bone ham. Brisket tenderloin meatball turducken, hamburger ball tip rump pork flank ground round spare ribs kielbasa beef ribs bacon.</p>
+ </div>
+ <div id="salami">
+ <p>Salami short ribs corned beef, pancetta ham hock jowl frankfurter tail rump flank capicola tri-tip andouille sirloin. Biltong bresaola sausage hamburger ground round, pork loin tri-tip pig andouille fatback short ribs pork jowl. Capicola boudin sirloin tongue, beef prosciutto spare ribs shankle ball tip ham beef ribs turducken tenderloin. Drumstick tenderloin ribeye leberkäse, pork belly pancetta turducken frankfurter bresaola pig biltong. Pastrami beef ribs meatball tri-tip, chuck jerky prosciutto beef rump drumstick bresaola jowl. Hamburger leberkäse pork chop, ball tip meatball ham andouille fatback corned beef pork loin shoulder boudin. Shoulder short loin flank filet mignon tri-tip.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="yui3-u"><div id="demo-datatable"></div></div>
+
+ <div class="yui3-u">
+ <div class="yui3-panel yui3-widget" id="demo-panel">
+ <div class="yui3-panel-content yui3-widget-stdmod">
+ <div class="yui3-widget-hd">Add A New Product</div>
+ <div class="yui3-widget-bd">
+ <form>
+ <fieldset>
+ <ul>
+ <li>
+ <label for="productId">ID</label>
+ <input type="text" name="productId" id="productId">
+ </li>
+ <li>
+ <label for="name">Name</label>
+ <input type="text" name="name" id="name">
+ </li>
+ <li>
+ <label for="price">Price</label>
+ <input type="text" name="price" id="price">
+ </li>
+ </ul>
+ </fieldset>
+ </form>
+ </div>
+ <div class="yui3-widget-ft">
+ <button class="yui3-button">Add Item</button>
+ <button class="yui3-button">Remove All Items</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="yui3-u">
+ <div id="demo-calendar"></div>
+ </div>
+ <div class="yui3-u">
+ <div id="demo-dial"></div>
+ </div>
+ <div class="yui3-u">
+ <div id="demo-xslider"></div>
+ </div>
+ <div class="yui3-u">
+ <div id="demo-yslider"></div>
+ </div>
+
+ <div class="yui3-u">
+ <div id="demo-scrollview">
+ <ul>
+ <li>Sir DZL</li>
+ <li>Casual</li>
+ <li>A-Plus</li>
+ <li>Opio</li>
+ <li>Phesto</li>
+ <li>Tajai</li>
+ <li>Pep Love</li>
+ <li>Domino</li>
+ <li>Toure</li>
+ <li>Bukue One</li>
+ <li>Z-Man</li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="yui3-u">
+ <div id="demo-menunav" class="yui3-menu">
+ <div class="yui3-menu-content">
+ <ul class="first-of-type">
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://developer.yahoo.com/">Developer Network</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://www.flickr.com">Flickr</a></li>
+ <li>
+ <a class="yui3-menu-label" href="#pim">PIM</a>
+ <div id="pim" class="yui3-menu">
+ <div class="yui3-menu-content">
+
+ <ul>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://mail.yahoo.com">Mail</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://www.zimbra.com">Zimbra</a></li>
+ </ul>
+
+ <ul>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://addressbook.yahoo.com">Address Book</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://calendar.yahoo.com">Calendar</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://notepad.yahoo.com">Notepad</a></li>
+ </ul>
+
+ <ul>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://messenger.yahoo.com">Messenger</a></li>
+ </ul>
+
+ </div>
+ </div>
+ </li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://profiles.yahoo.com">Profiles</a> </li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://mobile.yahoo.com">Mobile</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://mybloglog.yahoo.com/">MyBlogLog</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://pride.yahoo.com/">Pride</a></li>
+ <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="http://upcoming.yahoo.com/">Upcoming</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+<script>
+YUI({filter: 'raw'}).use('tabview', 'datatable-sort', 'calendar', 'panel', 'dial', 'node-menunav', 'node-event-delegate', 'slider', 'scrollview', 'scrollview-list', function(Y) {
+ var buttonHandlers = {
+ sam: function(e) {
+ Y.one('body').replaceClass('yui3-skin-night', 'yui3-skin-sam');
+ },
+
+ night: function(e) {
+ Y.one('body').replaceClass('yui3-skin-sam', 'yui3-skin-night');
+ },
+
+ rtl: function(e) {
+ Y.one('body').setAttribute('dir', 'rtl');
+ },
+
+ ltr: function(e) {
+ Y.one('body').setAttribute('dir', 'ltr');
+ }
+ };
+
+ function buttonGroupHandler(e) {
+ var button = e.currentTarget,
+ handler = buttonHandlers[button.get('id')],
+ selectedClass = Y.ClassNameManager.getClassName('button', 'selected');
+
+ if (handler) {
+ button.addClass(selectedClass);
+ button.siblings().removeClass(selectedClass);
+
+ handler.call(this, e);
+ }
+ }
+
+ new Y.TabView({
+ srcNode: '#demo-tabview'
+ }).render();
+
+ // what if...
+ // Y.TabView('#demo-tabview');
+ // Y.one('#demo-tabview').plug('tabs');
+
+ new Y.DataTable.Base({
+ srcNode: '#demo-datatable',
+ columnset: [
+ {key:"Company", label:"Column A", sortable:true},
+ {key:"Phone", label:"Column B", sortable:true},
+ {key:"Contact", label:"Column C", sortable:true}
+ ],
+ recordset: [
+ {Company:"Company Bee", Phone:"415-555-1234", Contact:"Sally Spencer"},
+ {Company:"Acme Company", Phone:"650-555-4444", Contact:"John Jones"},
+ {Company:"Industrial Industries", Phone:"408-555-5678", Contact:"Robin Smith"}
+ ],
+ caption: "Example table with sortable columns"
+ }).plug(Y.Plugin.DataTableSort).render();
+
+ // what if...
+ // plug('sort').render();
+
+
+ new Y.Calendar({
+ render: "#demo-calendar"
+ });
+
+ new Y.Dial({
+ render: "#demo-dial"
+ });
+
+ new Y.Slider({
+ axis: 'y',
+ render: '#demo-yslider'
+ });
+
+ new Y.Slider({
+ render: '#demo-xslider'
+ });
+
+ new Y.ScrollView({
+ height: '150px',
+ contentBox: '#demo-scrollview'
+ }).plug(Y.Plugin.ScrollViewList).render();
+
+ // what if...
+ // Y.Calendar('#demo-calendar');
+ // Y.Dial('#demo-dial');
+ // Y.Dial('#demo-dial');
+
+ // new Y.Slider('#demo-yslider', {
+ // axis: 'y',
+ // });
+
+ Y.one('#demo-menunav').plug(Y.Plugin.NodeMenuNav);
+
+ // what if...
+ // Y.Menu('#demo-menu');
+
+ // handle button groups
+ Y.one('.button-group').delegate('click', buttonGroupHandler, 'button');
+
+ /* what if...
+ Y.RadioButtons('.button-group', {
+ '#sam': buttonHandlers['sam'],
+ '#night': buttonHandlers['night'],
+ '#ltr': buttonHandlers['ltr'],
+ '#rtl': buttonHandlers['rtl']
+ });
+ */
+
+});
+</script>
+</body>
+</html>
View
8 src/dial/HISTORY.md
@@ -6,6 +6,14 @@ Dial Change History
* Changed method name from _getNewValueFromMousedown to _handleMousedown
+ * Improved mousedown on ring handling [Ticket #2530597]
+
+ * Improved handling of dragging the handle past max/min and around multiple
+ revolutions. [Ticket #2530766]
+
+ * Fixed problem with Dial having incorrect center X and Y following a browser
+ resize. [Ticket #2531111]
+
3.4.0
-----
View
21 src/io/HISTORY.md
@@ -1,6 +1,27 @@
IO Utility Change History
=========================
+3.4.1
+-----
+
+ * HTTP 304 now treated as a success condition. [Ticket #2530931]
+
+ * Fixed transport creation error when both io-xdr and io-upload-iframe
+ modules are in use [Ticket #2530999]
+
+ * Querystring stringify added to io-upload-iframe. [Ticket #2531037]
+
+ * Fixed request abort error in IE. [Ticket #2531038]
+
+ * Add try/catch to io-upload-iframe response to handle failure cases
+ where the document may be inaccessible. [Ticket #2531041]
+
+ * Add IO support for XHR basic user authentication. [Ticket #2530023]
+
+ * Revert Y.mix usage for synchronous requests. [Ticket #2531056]
+
+ * Fixed io-upload-iframe transport destruction. [Ticket #2531058]
+
3.4.0
-----
View
2 src/io/meta/io.json
@@ -35,7 +35,7 @@
"io-xdr": {
"requires": [
"io-base",
- "datatype-xml"
+ "datatype-xml-parse"
]
}
}

0 comments on commit 87e75f8

Please sign in to comment.
Something went wrong with that request. Please try again.