5
<title>yui/js/yui.js - YUI 3</title>
6
<link rel="stylesheet" href="http://yui.yahooapis.com/3.5.0/build/cssgrids/cssgrids-min.css">
7
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
8
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
9
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script>
11
<body class="yui3-skin-sam">
14
<div id="hd" class="yui3-g header">
15
<div class="yui3-u-3-4">
17
<h1><img src="../assets/css/logo.png" title="YUI 3"></h1>
20
<div class="yui3-u-1-4 version">
21
<em>API Docs for: 3.5.1</em>
24
<div id="bd" class="yui3-g">
26
<div class="yui3-u-1-4">
27
<div id="docs-sidebar" class="sidebar apidocs">
29
<h2 class="off-left">APIs</h2>
30
<div id="api-tabview" class="tabview">
32
<li><a href="#api-classes">Classes</a></li>
33
<li><a href="#api-modules">Modules</a></li>
36
<div id="api-tabview-filter">
37
<input type="search" id="api-filter" placeholder="Type to filter APIs">
40
<div id="api-tabview-panel">
41
<ul id="api-classes" class="apis classes">
43
<li><a href="../classes/Anim.html">Anim</a></li>
45
<li><a href="../classes/App.html">App</a></li>
47
<li><a href="../classes/App.Base.html">App.Base</a></li>
49
<li><a href="../classes/App.Transitions.html">App.Transitions</a></li>
51
<li><a href="../classes/App.TransitionsNative.html">App.TransitionsNative</a></li>
53
<li><a href="../classes/AreaSeries.html">AreaSeries</a></li>
55
<li><a href="../classes/AreaSplineSeries.html">AreaSplineSeries</a></li>
57
<li><a href="../classes/Array.html">Array</a></li>
59
<li><a href="../classes/ArrayList.html">ArrayList</a></li>
61
<li><a href="../classes/ArraySort.html">ArraySort</a></li>
63
<li><a href="../classes/AsyncQueue.html">AsyncQueue</a></li>
65
<li><a href="../classes/Attribute.html">Attribute</a></li>
67
<li><a href="../classes/AttributeCore.html">AttributeCore</a></li>
69
<li><a href="../classes/AttributeEvents.html">AttributeEvents</a></li>
71
<li><a href="../classes/AttributeExtras.html">AttributeExtras</a></li>
73
<li><a href="../classes/AttributeLite.html">AttributeLite</a></li>
75
<li><a href="../classes/AutoComplete.html">AutoComplete</a></li>
77
<li><a href="../classes/AutoCompleteBase.html">AutoCompleteBase</a></li>
79
<li><a href="../classes/AutoCompleteFilters.html">AutoCompleteFilters</a></li>
81
<li><a href="../classes/AutoCompleteHighlighters.html">AutoCompleteHighlighters</a></li>
83
<li><a href="../classes/AutoCompleteList.html">AutoCompleteList</a></li>
85
<li><a href="../classes/Axis.html">Axis</a></li>
87
<li><a href="../classes/AxisType.html">AxisType</a></li>
89
<li><a href="../classes/BarSeries.html">BarSeries</a></li>
91
<li><a href="../classes/Base.html">Base</a></li>
93
<li><a href="../classes/BaseCore.html">BaseCore</a></li>
95
<li><a href="../classes/BottomAxisLayout.html">BottomAxisLayout</a></li>
97
<li><a href="../classes/Button.html">Button</a></li>
99
<li><a href="../classes/ButtonCore.html">ButtonCore</a></li>
101
<li><a href="../classes/ButtonGroup.html">ButtonGroup</a></li>
103
<li><a href="../classes/ButtonPlugin.html">ButtonPlugin</a></li>
105
<li><a href="../classes/Cache.html">Cache</a></li>
107
<li><a href="../classes/CacheOffline.html">CacheOffline</a></li>
109
<li><a href="../classes/Calendar.html">Calendar</a></li>
111
<li><a href="../classes/CalendarBase.html">CalendarBase</a></li>
113
<li><a href="../classes/CanvasCircle.html">CanvasCircle</a></li>
115
<li><a href="../classes/CanvasDrawing.html">CanvasDrawing</a></li>
117
<li><a href="../classes/CanvasEllipse.html">CanvasEllipse</a></li>
119
<li><a href="../classes/CanvasGraphic.html">CanvasGraphic</a></li>
121
<li><a href="../classes/CanvasPath.html">CanvasPath</a></li>
123
<li><a href="../classes/CanvasPieSlice.html">CanvasPieSlice</a></li>
125
<li><a href="../classes/CanvasRect.html">CanvasRect</a></li>
127
<li><a href="../classes/CanvasShape.html">CanvasShape</a></li>
129
<li><a href="../classes/CartesianChart.html">CartesianChart</a></li>
131
<li><a href="../classes/CartesianSeries.html">CartesianSeries</a></li>
133
<li><a href="../classes/CategoryAxis.html">CategoryAxis</a></li>
135
<li><a href="../classes/Chart.html">Chart</a></li>
137
<li><a href="../classes/ChartBase.html">ChartBase</a></li>
139
<li><a href="../classes/ChartLegend.html">ChartLegend</a></li>
141
<li><a href="../classes/Circle.html">Circle</a></li>
143
<li><a href="../classes/ClassNameManager.html">ClassNameManager</a></li>
145
<li><a href="../classes/ClickableRail.html">ClickableRail</a></li>
147
<li><a href="../classes/ColumnSeries.html">ColumnSeries</a></li>
149
<li><a href="../classes/ComboSeries.html">ComboSeries</a></li>
151
<li><a href="../classes/ComboSplineSeries.html">ComboSplineSeries</a></li>
153
<li><a href="../classes/config.html">config</a></li>
155
<li><a href="../classes/Console.html">Console</a></li>
157
<li><a href="../classes/Controller.html">Controller</a></li>
159
<li><a href="../classes/Cookie.html">Cookie</a></li>
161
<li><a href="../classes/CurveUtil.html">CurveUtil</a></li>
163
<li><a href="../classes/CustomEvent.html">CustomEvent</a></li>
165
<li><a href="../classes/DataSchema.Array.html">DataSchema.Array</a></li>
167
<li><a href="../classes/DataSchema.Base.html">DataSchema.Base</a></li>
169
<li><a href="../classes/DataSchema.JSON.html">DataSchema.JSON</a></li>
171
<li><a href="../classes/DataSchema.Text.html">DataSchema.Text</a></li>
173
<li><a href="../classes/DataSchema.XML.html">DataSchema.XML</a></li>
175
<li><a href="../classes/DataSource.Function.html">DataSource.Function</a></li>
177
<li><a href="../classes/DataSource.Get.html">DataSource.Get</a></li>
179
<li><a href="../classes/DataSource.IO.html">DataSource.IO</a></li>
181
<li><a href="../classes/DataSource.Local.html">DataSource.Local</a></li>
183
<li><a href="../classes/DataSourceArraySchema.html">DataSourceArraySchema</a></li>
185
<li><a href="../classes/DataSourceCache.html">DataSourceCache</a></li>
187
<li><a href="../classes/DataSourceCacheExtension.html">DataSourceCacheExtension</a></li>
189
<li><a href="../classes/DataSourceJSONSchema.html">DataSourceJSONSchema</a></li>
191
<li><a href="../classes/DataSourceTextSchema.html">DataSourceTextSchema</a></li>
193
<li><a href="../classes/DataSourceXMLSchema.html">DataSourceXMLSchema</a></li>
195
<li><a href="../classes/DataTable.html">DataTable</a></li>
197
<li><a href="../classes/DataTable.Base.html">DataTable.Base</a></li>
199
<li><a href="../classes/DataTable.BodyView.html">DataTable.BodyView</a></li>
201
<li><a href="../classes/DataTable.ColumnWidths.html">DataTable.ColumnWidths</a></li>
203
<li><a href="../classes/DataTable.Core.html">DataTable.Core</a></li>
205
<li><a href="../classes/DataTable.HeaderView.html">DataTable.HeaderView</a></li>
207
<li><a href="../classes/DataTable.Message.html">DataTable.Message</a></li>
209
<li><a href="../classes/DataTable.Mutable.html">DataTable.Mutable</a></li>
211
<li><a href="../classes/DataTable.Scrollable.html">DataTable.Scrollable</a></li>
213
<li><a href="../classes/DataTable.Sortable.html">DataTable.Sortable</a></li>
215
<li><a href="../classes/DataType.Date.html">DataType.Date</a></li>
217
<li><a href="../classes/DataType.Date.Locale.html">DataType.Date.Locale</a></li>
219
<li><a href="../classes/DataType.Number.html">DataType.Number</a></li>
221
<li><a href="../classes/DataType.XML.html">DataType.XML</a></li>
223
<li><a href="../classes/DD.DDM.html">DD.DDM</a></li>
225
<li><a href="../classes/DD.Delegate.html">DD.Delegate</a></li>
227
<li><a href="../classes/DD.Drag.html">DD.Drag</a></li>
229
<li><a href="../classes/DD.Drop.html">DD.Drop</a></li>
231
<li><a href="../classes/DD.Scroll.html">DD.Scroll</a></li>
233
<li><a href="../classes/Dial.html">Dial</a></li>
235
<li><a href="../classes/Do.html">Do</a></li>
237
<li><a href="../classes/Do.AlterArgs.html">Do.AlterArgs</a></li>
239
<li><a href="../classes/Do.AlterReturn.html">Do.AlterReturn</a></li>
241
<li><a href="../classes/Do.Error.html">Do.Error</a></li>
243
<li><a href="../classes/Do.Halt.html">Do.Halt</a></li>
245
<li><a href="../classes/Do.Method.html">Do.Method</a></li>
247
<li><a href="../classes/Do.Prevent.html">Do.Prevent</a></li>
249
<li><a href="../classes/DOM.html">DOM</a></li>
251
<li><a href="../classes/DOMEventFacade.html">DOMEventFacade</a></li>
253
<li><a href="../classes/Drawing.html">Drawing</a></li>
255
<li><a href="../classes/Easing.html">Easing</a></li>
257
<li><a href="../classes/EditorBase.html">EditorBase</a></li>
259
<li><a href="../classes/EditorSelection.html">EditorSelection</a></li>
261
<li><a href="../classes/Ellipse.html">Ellipse</a></li>
263
<li><a href="../classes/EllipseGroup.html">EllipseGroup</a></li>
265
<li><a href="../classes/Escape.html">Escape</a></li>
267
<li><a href="../classes/Event.html">Event</a></li>
269
<li><a href="../classes/EventFacade.html">EventFacade</a></li>
271
<li><a href="../classes/EventHandle.html">EventHandle</a></li>
273
<li><a href="../classes/EventTarget.html">EventTarget</a></li>
275
<li><a href="../classes/ExecCommand.html">ExecCommand</a></li>
277
<li><a href="../classes/Features.html">Features</a></li>
279
<li><a href="../classes/File.html">File</a></li>
281
<li><a href="../classes/FileFlash.html">FileFlash</a></li>
283
<li><a href="../classes/FileHTML5.html">FileHTML5</a></li>
285
<li><a href="../classes/Fills.html">Fills</a></li>
287
<li><a href="../classes/Frame.html">Frame</a></li>
289
<li><a href="../classes/Get.html">Get</a></li>
291
<li><a href="../classes/Get.Transaction.html">Get.Transaction</a></li>
293
<li><a href="../classes/GetNodeJS.html">GetNodeJS</a></li>
295
<li><a href="../classes/Graph.html">Graph</a></li>
297
<li><a href="../classes/Graphic.html">Graphic</a></li>
299
<li><a href="../classes/GraphicBase.html">GraphicBase</a></li>
301
<li><a href="../classes/Gridlines.html">Gridlines</a></li>
303
<li><a href="../classes/GroupCircle.html">GroupCircle</a></li>
305
<li><a href="../classes/GroupDiamond.html">GroupDiamond</a></li>
307
<li><a href="../classes/GroupRect.html">GroupRect</a></li>
309
<li><a href="../classes/Handlebars.html">Handlebars</a></li>
311
<li><a href="../classes/Highlight.html">Highlight</a></li>
313
<li><a href="../classes/Histogram.html">Histogram</a></li>
315
<li><a href="../classes/HistoryBase.html">HistoryBase</a></li>
317
<li><a href="../classes/HistoryHash.html">HistoryHash</a></li>
319
<li><a href="../classes/HistoryHTML5.html">HistoryHTML5</a></li>
321
<li><a href="../classes/HorizontalLegendLayout.html">HorizontalLegendLayout</a></li>
323
<li><a href="../classes/ImgLoadGroup.html">ImgLoadGroup</a></li>
325
<li><a href="../classes/ImgLoadImgObj.html">ImgLoadImgObj</a></li>
327
<li><a href="../classes/Intl.html">Intl</a></li>
329
<li><a href="../classes/IO.html">IO</a></li>
331
<li><a href="../classes/JSON.html">JSON</a></li>
333
<li><a href="../classes/JSONPRequest.html">JSONPRequest</a></li>
335
<li><a href="../classes/Lang.html">Lang</a></li>
337
<li><a href="../classes/LeftAxisLayout.html">LeftAxisLayout</a></li>
339
<li><a href="../classes/Lines.html">Lines</a></li>
341
<li><a href="../classes/LineSeries.html">LineSeries</a></li>
343
<li><a href="../classes/Loader.html">Loader</a></li>
345
<li><a href="../classes/MarkerSeries.html">MarkerSeries</a></li>
347
<li><a href="../classes/Matrix.html">Matrix</a></li>
349
<li><a href="../classes/Model.html">Model</a></li>
351
<li><a href="../classes/ModelList.html">ModelList</a></li>
353
<li><a href="../classes/Node.html">Node</a></li>
355
<li><a href="../classes/NodeList.html">NodeList</a></li>
357
<li><a href="../classes/NumericAxis.html">NumericAxis</a></li>
359
<li><a href="../classes/Object.html">Object</a></li>
361
<li><a href="../classes/Overlay.html">Overlay</a></li>
363
<li><a href="../classes/Panel.html">Panel</a></li>
365
<li><a href="../classes/Parallel.html">Parallel</a></li>
367
<li><a href="../classes/Path.html">Path</a></li>
369
<li><a href="../classes/PieChart.html">PieChart</a></li>
371
<li><a href="../classes/PieSeries.html">PieSeries</a></li>
373
<li><a href="../classes/Pjax.html">Pjax</a></li>
375
<li><a href="../classes/PjaxBase.html">PjaxBase</a></li>
377
<li><a href="../classes/Plots.html">Plots</a></li>
379
<li><a href="../classes/Plugin.Align.html">Plugin.Align</a></li>
381
<li><a href="../classes/Plugin.AutoComplete.html">Plugin.AutoComplete</a></li>
383
<li><a href="../classes/Plugin.Base.html">Plugin.Base</a></li>
385
<li><a href="../classes/Plugin.Cache.html">Plugin.Cache</a></li>
387
<li><a href="../classes/Plugin.CalendarNavigator.html">Plugin.CalendarNavigator</a></li>
389
<li><a href="../classes/Plugin.ConsoleFilters.html">Plugin.ConsoleFilters</a></li>
391
<li><a href="../classes/Plugin.CreateLinkBase.html">Plugin.CreateLinkBase</a></li>
393
<li><a href="../classes/Plugin.DataTableDataSource.html">Plugin.DataTableDataSource</a></li>
395
<li><a href="../classes/Plugin.DDConstrained.html">Plugin.DDConstrained</a></li>
397
<li><a href="../classes/Plugin.DDNodeScroll.html">Plugin.DDNodeScroll</a></li>
399
<li><a href="../classes/Plugin.DDProxy.html">Plugin.DDProxy</a></li>
401
<li><a href="../classes/Plugin.DDWindowScroll.html">Plugin.DDWindowScroll</a></li>
403
<li><a href="../classes/Plugin.Drag.html">Plugin.Drag</a></li>
405
<li><a href="../classes/Plugin.Drop.html">Plugin.Drop</a></li>
407
<li><a href="../classes/Plugin.EditorBidi.html">Plugin.EditorBidi</a></li>
409
<li><a href="../classes/Plugin.EditorBR.html">Plugin.EditorBR</a></li>
411
<li><a href="../classes/Plugin.EditorLists.html">Plugin.EditorLists</a></li>
413
<li><a href="../classes/Plugin.EditorPara.html">Plugin.EditorPara</a></li>
415
<li><a href="../classes/Plugin.EditorParaBase.html">Plugin.EditorParaBase</a></li>
417
<li><a href="../classes/Plugin.EditorParaIE.html">Plugin.EditorParaIE</a></li>
419
<li><a href="../classes/Plugin.EditorTab.html">Plugin.EditorTab</a></li>
421
<li><a href="../classes/Plugin.ExecCommand.html">Plugin.ExecCommand</a></li>
423
<li><a href="../classes/Plugin.Flick.html">Plugin.Flick</a></li>
425
<li><a href="../classes/Plugin.Host.html">Plugin.Host</a></li>
427
<li><a href="../classes/plugin.NodeFocusManager.html">plugin.NodeFocusManager</a></li>
429
<li><a href="../classes/Plugin.NodeFX.html">Plugin.NodeFX</a></li>
431
<li><a href="../classes/plugin.NodeMenuNav.html">plugin.NodeMenuNav</a></li>
433
<li><a href="../classes/Plugin.Pjax.html">Plugin.Pjax</a></li>
435
<li><a href="../classes/Plugin.Resize.html">Plugin.Resize</a></li>
437
<li><a href="../classes/Plugin.ResizeConstrained.html">Plugin.ResizeConstrained</a></li>
439
<li><a href="../classes/Plugin.ResizeProxy.html">Plugin.ResizeProxy</a></li>
441
<li><a href="../classes/Plugin.ScrollViewList.html">Plugin.ScrollViewList</a></li>
443
<li><a href="../classes/Plugin.ScrollViewPaginator.html">Plugin.ScrollViewPaginator</a></li>
445
<li><a href="../classes/Plugin.ScrollViewScrollbars.html">Plugin.ScrollViewScrollbars</a></li>
447
<li><a href="../classes/Plugin.Shim.html">Plugin.Shim</a></li>
449
<li><a href="../classes/Plugin.SortScroll.html">Plugin.SortScroll</a></li>
451
<li><a href="../classes/Plugin.WidgetAnim.html">Plugin.WidgetAnim</a></li>
453
<li><a href="../classes/Pollable.html">Pollable</a></li>
455
<li><a href="../classes/Profiler.html">Profiler</a></li>
457
<li><a href="../classes/QueryString.html">QueryString</a></li>
459
<li><a href="../classes/Queue.html">Queue</a></li>
461
<li><a href="../classes/Record.html">Record</a></li>
463
<li><a href="../classes/Recordset.html">Recordset</a></li>
465
<li><a href="../classes/RecordsetFilter.html">RecordsetFilter</a></li>
467
<li><a href="../classes/RecordsetIndexer.html">RecordsetIndexer</a></li>
469
<li><a href="../classes/RecordsetSort.html">RecordsetSort</a></li>
471
<li><a href="../classes/Rect.html">Rect</a></li>
473
<li><a href="../classes/Renderer.html">Renderer</a></li>
475
<li><a href="../classes/Resize.html">Resize</a></li>
477
<li><a href="../classes/RightAxisLayout.html">RightAxisLayout</a></li>
479
<li><a href="../classes/Router.html">Router</a></li>
481
<li><a href="../classes/ScrollView.html">ScrollView</a></li>
483
<li><a href="../classes/Selector.html">Selector</a></li>
485
<li><a href="../classes/Shape.html">Shape</a></li>
487
<li><a href="../classes/ShapeGroup.html">ShapeGroup</a></li>
489
<li><a href="../classes/Slider.html">Slider</a></li>
491
<li><a href="../classes/SliderBase.html">SliderBase</a></li>
493
<li><a href="../classes/SliderValueRange.html">SliderValueRange</a></li>
495
<li><a href="../classes/Sortable.html">Sortable</a></li>
497
<li><a href="../classes/SplineSeries.html">SplineSeries</a></li>
499
<li><a href="../classes/StackedAreaSeries.html">StackedAreaSeries</a></li>
501
<li><a href="../classes/StackedAreaSplineSeries.html">StackedAreaSplineSeries</a></li>
503
<li><a href="../classes/StackedAxis.html">StackedAxis</a></li>
505
<li><a href="../classes/StackedBarSeries.html">StackedBarSeries</a></li>
507
<li><a href="../classes/StackedColumnSeries.html">StackedColumnSeries</a></li>
509
<li><a href="../classes/StackedComboSeries.html">StackedComboSeries</a></li>
511
<li><a href="../classes/StackedComboSplineSeries.html">StackedComboSplineSeries</a></li>
513
<li><a href="../classes/StackedLineSeries.html">StackedLineSeries</a></li>
515
<li><a href="../classes/StackedMarkerSeries.html">StackedMarkerSeries</a></li>
517
<li><a href="../classes/StackedSplineSeries.html">StackedSplineSeries</a></li>
519
<li><a href="../classes/StackingUtil.html">StackingUtil</a></li>
521
<li><a href="../classes/State.html">State</a></li>
523
<li><a href="../classes/StyleSheet.html">StyleSheet</a></li>
525
<li><a href="../classes/Subscriber.html">Subscriber</a></li>
527
<li><a href="../classes/SVGCircle.html">SVGCircle</a></li>
529
<li><a href="../classes/SVGDrawing.html">SVGDrawing</a></li>
531
<li><a href="../classes/SVGEllipse.html">SVGEllipse</a></li>
533
<li><a href="../classes/SVGGraphic.html">SVGGraphic</a></li>
535
<li><a href="../classes/SVGPath.html">SVGPath</a></li>
537
<li><a href="../classes/SVGPieSlice.html">SVGPieSlice</a></li>
539
<li><a href="../classes/SVGRect.html">SVGRect</a></li>
541
<li><a href="../classes/SVGShape.html">SVGShape</a></li>
543
<li><a href="../classes/SWF.html">SWF</a></li>
545
<li><a href="../classes/SWFDetect.html">SWFDetect</a></li>
547
<li><a href="../classes/SyntheticEvent.html">SyntheticEvent</a></li>
549
<li><a href="../classes/SyntheticEvent.Notifier.html">SyntheticEvent.Notifier</a></li>
551
<li><a href="../classes/SynthRegistry.html">SynthRegistry</a></li>
553
<li><a href="../classes/Tab.html">Tab</a></li>
555
<li><a href="../classes/TabView.html">TabView</a></li>
557
<li><a href="../classes/Test.ArrayAssert.html">Test.ArrayAssert</a></li>
559
<li><a href="../classes/Test.Assert.html">Test.Assert</a></li>
561
<li><a href="../classes/Test.AssertionError.html">Test.AssertionError</a></li>
563
<li><a href="../classes/Test.ComparisonFailure.html">Test.ComparisonFailure</a></li>
565
<li><a href="../classes/Test.Console.html">Test.Console</a></li>
567
<li><a href="../classes/Test.CoverageFormat.html">Test.CoverageFormat</a></li>
569
<li><a href="../classes/Test.DateAssert.html">Test.DateAssert</a></li>
571
<li><a href="../classes/Test.EventTarget.html">Test.EventTarget</a></li>
573
<li><a href="../classes/Test.Mock.html">Test.Mock</a></li>
575
<li><a href="../classes/Test.Mock.Value.html">Test.Mock.Value</a></li>
577
<li><a href="../classes/Test.ObjectAssert.html">Test.ObjectAssert</a></li>
579
<li><a href="../classes/Test.Reporter.html">Test.Reporter</a></li>
581
<li><a href="../classes/Test.Results.html">Test.Results</a></li>
583
<li><a href="../classes/Test.Runner.html">Test.Runner</a></li>
585
<li><a href="../classes/Test.ShouldError.html">Test.ShouldError</a></li>
587
<li><a href="../classes/Test.ShouldFail.html">Test.ShouldFail</a></li>
589
<li><a href="../classes/Test.TestCase.html">Test.TestCase</a></li>
591
<li><a href="../classes/Test.TestFormat.html">Test.TestFormat</a></li>
593
<li><a href="../classes/Test.TestNode.html">Test.TestNode</a></li>
595
<li><a href="../classes/Test.TestRunner.html">Test.TestRunner</a></li>
597
<li><a href="../classes/Test.TestSuite.html">Test.TestSuite</a></li>
599
<li><a href="../classes/Test.UnexpectedError.html">Test.UnexpectedError</a></li>
601
<li><a href="../classes/Test.UnexpectedValue.html">Test.UnexpectedValue</a></li>
603
<li><a href="../classes/Test.Wait.html">Test.Wait</a></li>
605
<li><a href="../classes/Text.AccentFold.html">Text.AccentFold</a></li>
607
<li><a href="../classes/Text.WordBreak.html">Text.WordBreak</a></li>
609
<li><a href="../classes/TimeAxis.html">TimeAxis</a></li>
611
<li><a href="../classes/ToggleButton.html">ToggleButton</a></li>
613
<li><a href="../classes/TopAxisLayout.html">TopAxisLayout</a></li>
615
<li><a href="../classes/Transition.html">Transition</a></li>
617
<li><a href="../classes/UA.html">UA</a></li>
619
<li><a href="../classes/Uploader.html">Uploader</a></li>
621
<li><a href="../classes/Uploader.Queue.html">Uploader.Queue</a></li>
623
<li><a href="../classes/UploaderFlash.html">UploaderFlash</a></li>
625
<li><a href="../classes/UploaderHTML5.html">UploaderHTML5</a></li>
627
<li><a href="../classes/ValueChange.html">ValueChange</a></li>
629
<li><a href="../classes/VerticalLegendLayout.html">VerticalLegendLayout</a></li>
631
<li><a href="../classes/View.html">View</a></li>
633
<li><a href="../classes/View.NodeMap.html">View.NodeMap</a></li>
635
<li><a href="../classes/VMLCircle.html">VMLCircle</a></li>
637
<li><a href="../classes/VMLDrawing.html">VMLDrawing</a></li>
639
<li><a href="../classes/VMLEllipse.html">VMLEllipse</a></li>
641
<li><a href="../classes/VMLGraphic.html">VMLGraphic</a></li>
643
<li><a href="../classes/VMLPath.html">VMLPath</a></li>
645
<li><a href="../classes/VMLPieSlice.html">VMLPieSlice</a></li>
647
<li><a href="../classes/VMLRect.html">VMLRect</a></li>
649
<li><a href="../classes/VMLShape.html">VMLShape</a></li>
651
<li><a href="../classes/Widget.html">Widget</a></li>
653
<li><a href="../classes/WidgetAutohide.html">WidgetAutohide</a></li>
655
<li><a href="../classes/WidgetButtons.html">WidgetButtons</a></li>
657
<li><a href="../classes/WidgetChild.html">WidgetChild</a></li>
659
<li><a href="../classes/WidgetModality.html">WidgetModality</a></li>
661
<li><a href="../classes/WidgetParent.html">WidgetParent</a></li>
663
<li><a href="../classes/WidgetPosition.html">WidgetPosition</a></li>
665
<li><a href="../classes/WidgetPositionAlign.html">WidgetPositionAlign</a></li>
667
<li><a href="../classes/WidgetPositionConstrain.html">WidgetPositionConstrain</a></li>
669
<li><a href="../classes/WidgetStack.html">WidgetStack</a></li>
671
<li><a href="../classes/WidgetStdMod.html">WidgetStdMod</a></li>
673
<li><a href="../classes/YQL.html">YQL</a></li>
675
<li><a href="../classes/YQLRequest.html">YQLRequest</a></li>
677
<li><a href="../classes/YUI.html">YUI</a></li>
679
<li><a href="../classes/YUI~substitute.html">YUI~substitute</a></li>
683
<ul id="api-modules" class="apis modules">
685
<li><a href="../modules/align-plugin.html">align-plugin</a></li>
687
<li><a href="../modules/anim.html">anim</a></li>
689
<li><a href="../modules/anim-base.html">anim-base</a></li>
691
<li><a href="../modules/anim-color.html">anim-color</a></li>
693
<li><a href="../modules/anim-curve.html">anim-curve</a></li>
695
<li><a href="../modules/anim-easing.html">anim-easing</a></li>
697
<li><a href="../modules/anim-node-plugin.html">anim-node-plugin</a></li>
699
<li><a href="../modules/anim-scroll.html">anim-scroll</a></li>
701
<li><a href="../modules/anim-shape-transform.html">anim-shape-transform</a></li>
703
<li><a href="../modules/anim-xy.html">anim-xy</a></li>
705
<li><a href="../modules/app.html">app</a></li>
707
<li><a href="../modules/app-base.html">app-base</a></li>
709
<li><a href="../modules/app-transitions.html">app-transitions</a></li>
711
<li><a href="../modules/app-transitions-native.html">app-transitions-native</a></li>
713
<li><a href="../modules/array-extras.html">array-extras</a></li>
715
<li><a href="../modules/array-invoke.html">array-invoke</a></li>
717
<li><a href="../modules/arraylist.html">arraylist</a></li>
719
<li><a href="../modules/arraylist-add.html">arraylist-add</a></li>
721
<li><a href="../modules/arraylist-filter.html">arraylist-filter</a></li>
723
<li><a href="../modules/arraysort.html">arraysort</a></li>
725
<li><a href="../modules/async-queue.html">async-queue</a></li>
727
<li><a href="../modules/attribute.html">attribute</a></li>
729
<li><a href="../modules/attribute-base.html">attribute-base</a></li>
731
<li><a href="../modules/attribute-complex.html">attribute-complex</a></li>
733
<li><a href="../modules/attribute-core.html">attribute-core</a></li>
735
<li><a href="../modules/attribute-events.html">attribute-events</a></li>
737
<li><a href="../modules/attribute-extras.html">attribute-extras</a></li>
739
<li><a href="../modules/autocomplete.html">autocomplete</a></li>
741
<li><a href="../modules/autocomplete-base.html">autocomplete-base</a></li>
743
<li><a href="../modules/autocomplete-filters.html">autocomplete-filters</a></li>
745
<li><a href="../modules/autocomplete-filters-accentfold.html">autocomplete-filters-accentfold</a></li>
747
<li><a href="../modules/autocomplete-highlighters.html">autocomplete-highlighters</a></li>
749
<li><a href="../modules/autocomplete-highlighters-accentfold.html">autocomplete-highlighters-accentfold</a></li>
751
<li><a href="../modules/autocomplete-list.html">autocomplete-list</a></li>
753
<li><a href="../modules/autocomplete-list-keys.html">autocomplete-list-keys</a></li>
755
<li><a href="../modules/autocomplete-plugin.html">autocomplete-plugin</a></li>
757
<li><a href="../modules/autocomplete-sources.html">autocomplete-sources</a></li>
759
<li><a href="../modules/base.html">base</a></li>
761
<li><a href="../modules/base-base.html">base-base</a></li>
763
<li><a href="../modules/base-build.html">base-build</a></li>
765
<li><a href="../modules/base-core.html">base-core</a></li>
767
<li><a href="../modules/base-pluginhost.html">base-pluginhost</a></li>
769
<li><a href="../modules/button.html">button</a></li>
771
<li><a href="../modules/button-core.html">button-core</a></li>
773
<li><a href="../modules/button-group.html">button-group</a></li>
775
<li><a href="../modules/button-plugin.html">button-plugin</a></li>
777
<li><a href="../modules/cache.html">cache</a></li>
779
<li><a href="../modules/cache-base.html">cache-base</a></li>
781
<li><a href="../modules/cache-offline.html">cache-offline</a></li>
783
<li><a href="../modules/cache-plugin.html">cache-plugin</a></li>
785
<li><a href="../modules/calendar.html">calendar</a></li>
787
<li><a href="../modules/calendar-base.html">calendar-base</a></li>
789
<li><a href="../modules/calendarnavigator.html">calendarnavigator</a></li>
791
<li><a href="../modules/charts.html">charts</a></li>
793
<li><a href="../modules/charts-legend.html">charts-legend</a></li>
795
<li><a href="../modules/classnamemanager.html">classnamemanager</a></li>
797
<li><a href="../modules/clickable-rail.html">clickable-rail</a></li>
799
<li><a href="../modules/collection.html">collection</a></li>
801
<li><a href="../modules/console.html">console</a></li>
803
<li><a href="../modules/console-filters.html">console-filters</a></li>
805
<li><a href="../modules/cookie.html">cookie</a></li>
807
<li><a href="../modules/createlink-base.html">createlink-base</a></li>
809
<li><a href="../modules/dataschema.html">dataschema</a></li>
811
<li><a href="../modules/dataschema-array.html">dataschema-array</a></li>
813
<li><a href="../modules/dataschema-base.html">dataschema-base</a></li>
815
<li><a href="../modules/dataschema-json.html">dataschema-json</a></li>
817
<li><a href="../modules/dataschema-text.html">dataschema-text</a></li>
819
<li><a href="../modules/dataschema-xml.html">dataschema-xml</a></li>
821
<li><a href="../modules/datasource.html">datasource</a></li>
823
<li><a href="../modules/datasource-arrayschema.html">datasource-arrayschema</a></li>
825
<li><a href="../modules/datasource-cache.html">datasource-cache</a></li>
827
<li><a href="../modules/datasource-function.html">datasource-function</a></li>
829
<li><a href="../modules/datasource-get.html">datasource-get</a></li>
831
<li><a href="../modules/datasource-io.html">datasource-io</a></li>
833
<li><a href="../modules/datasource-jsonschema.html">datasource-jsonschema</a></li>
835
<li><a href="../modules/datasource-local.html">datasource-local</a></li>
837
<li><a href="../modules/datasource-polling.html">datasource-polling</a></li>
839
<li><a href="../modules/datasource-textschema.html">datasource-textschema</a></li>
841
<li><a href="../modules/datasource-xmlschema.html">datasource-xmlschema</a></li>
843
<li><a href="../modules/datatable.html">datatable</a></li>
845
<li><a href="../modules/datatable-base.html">datatable-base</a></li>
847
<li><a href="../modules/datatable-base-deprecated.html">datatable-base-deprecated</a></li>
849
<li><a href="../modules/datatable-body.html">datatable-body</a></li>
851
<li><a href="../modules/datatable-column-widths.html">datatable-column-widths</a></li>
853
<li><a href="../modules/datatable-core.html">datatable-core</a></li>
855
<li><a href="../modules/datatable-datasource.html">datatable-datasource</a></li>
857
<li><a href="../modules/datatable-datasource-deprecated.html">datatable-datasource-deprecated</a></li>
859
<li><a href="../modules/datatable-deprecated.html">datatable-deprecated</a></li>
861
<li><a href="../modules/datatable-head.html">datatable-head</a></li>
863
<li><a href="../modules/datatable-message.html">datatable-message</a></li>
865
<li><a href="../modules/datatable-mutable.html">datatable-mutable</a></li>
867
<li><a href="../modules/datatable-scroll.html">datatable-scroll</a></li>
869
<li><a href="../modules/datatable-scroll-deprecated.html">datatable-scroll-deprecated</a></li>
871
<li><a href="../modules/datatable-sort.html">datatable-sort</a></li>
873
<li><a href="../modules/datatable-sort-deprecated.html">datatable-sort-deprecated</a></li>
875
<li><a href="../modules/datatype.html">datatype</a></li>
877
<li><a href="../modules/datatype-date.html">datatype-date</a></li>
879
<li><a href="../modules/datatype-date-format.html">datatype-date-format</a></li>
881
<li><a href="../modules/datatype-date-math.html">datatype-date-math</a></li>
883
<li><a href="../modules/datatype-date-parse.html">datatype-date-parse</a></li>
885
<li><a href="../modules/datatype-number.html">datatype-number</a></li>
887
<li><a href="../modules/datatype-number-format.html">datatype-number-format</a></li>
889
<li><a href="../modules/datatype-number-parse.html">datatype-number-parse</a></li>
891
<li><a href="../modules/datatype-xml.html">datatype-xml</a></li>
893
<li><a href="../modules/datatype-xml-format.html">datatype-xml-format</a></li>
895
<li><a href="../modules/datatype-xml-parse.html">datatype-xml-parse</a></li>
897
<li><a href="../modules/dd.html">dd</a></li>
899
<li><a href="../modules/dd-constrain.html">dd-constrain</a></li>
901
<li><a href="../modules/dd-ddm.html">dd-ddm</a></li>
903
<li><a href="../modules/dd-ddm-base.html">dd-ddm-base</a></li>
905
<li><a href="../modules/dd-ddm-drop.html">dd-ddm-drop</a></li>
907
<li><a href="../modules/dd-delegate.html">dd-delegate</a></li>
909
<li><a href="../modules/dd-drag.html">dd-drag</a></li>
911
<li><a href="../modules/dd-drop.html">dd-drop</a></li>
913
<li><a href="../modules/dd-drop-plugin.html">dd-drop-plugin</a></li>
915
<li><a href="../modules/dd-plugin.html">dd-plugin</a></li>
917
<li><a href="../modules/dd-proxy.html">dd-proxy</a></li>
919
<li><a href="../modules/dd-scroll.html">dd-scroll</a></li>
921
<li><a href="../modules/dial.html">dial</a></li>
923
<li><a href="../modules/dom.html">dom</a></li>
925
<li><a href="../modules/dom-base.html">dom-base</a></li>
927
<li><a href="../modules/dom-screen.html">dom-screen</a></li>
929
<li><a href="../modules/dom-style.html">dom-style</a></li>
931
<li><a href="../modules/dump.html">dump</a></li>
933
<li><a href="../modules/editor.html">editor</a></li>
935
<li><a href="../modules/editor-base.html">editor-base</a></li>
937
<li><a href="../modules/editor-bidi.html">editor-bidi</a></li>
939
<li><a href="../modules/editor-br.html">editor-br</a></li>
941
<li><a href="../modules/editor-lists.html">editor-lists</a></li>
943
<li><a href="../modules/editor-para.html">editor-para</a></li>
945
<li><a href="../modules/editor-para-base.html">editor-para-base</a></li>
947
<li><a href="../modules/editor-para-ie.html">editor-para-ie</a></li>
949
<li><a href="../modules/editor-tab.html">editor-tab</a></li>
951
<li><a href="../modules/escape.html">escape</a></li>
953
<li><a href="../modules/event.html">event</a></li>
955
<li><a href="../modules/event-base.html">event-base</a></li>
957
<li><a href="../modules/event-contextmenu.html">event-contextmenu</a></li>
959
<li><a href="../modules/event-custom.html">event-custom</a></li>
961
<li><a href="../modules/event-custom-base.html">event-custom-base</a></li>
963
<li><a href="../modules/event-custom-complex.html">event-custom-complex</a></li>
965
<li><a href="../modules/event-delegate.html">event-delegate</a></li>
967
<li><a href="../modules/event-flick.html">event-flick</a></li>
969
<li><a href="../modules/event-focus.html">event-focus</a></li>
971
<li><a href="../modules/event-gestures.html">event-gestures</a></li>
973
<li><a href="../modules/event-hover.html">event-hover</a></li>
975
<li><a href="../modules/event-key.html">event-key</a></li>
977
<li><a href="../modules/event-mouseenter.html">event-mouseenter</a></li>
979
<li><a href="../modules/event-mousewheel.html">event-mousewheel</a></li>
981
<li><a href="../modules/event-move.html">event-move</a></li>
983
<li><a href="../modules/event-outside.html">event-outside</a></li>
985
<li><a href="../modules/event-resize.html">event-resize</a></li>
987
<li><a href="../modules/event-simulate.html">event-simulate</a></li>
989
<li><a href="../modules/event-synthetic.html">event-synthetic</a></li>
991
<li><a href="../modules/event-touch.html">event-touch</a></li>
993
<li><a href="../modules/event-valuechange.html">event-valuechange</a></li>
995
<li><a href="../modules/exec-command.html">exec-command</a></li>
997
<li><a href="../modules/features.html">features</a></li>
999
<li><a href="../modules/file.html">file</a></li>
1001
<li><a href="../modules/file-flash.html">file-flash</a></li>
1003
<li><a href="../modules/file-html5.html">file-html5</a></li>
1005
<li><a href="../modules/frame.html">frame</a></li>
1007
<li><a href="../modules/get.html">get</a></li>
1009
<li><a href="../modules/get-nodejs.html">get-nodejs</a></li>
1011
<li><a href="../modules/graphics.html">graphics</a></li>
1013
<li><a href="../modules/handlebars.html">handlebars</a></li>
1015
<li><a href="../modules/handlebars-base.html">handlebars-base</a></li>
1017
<li><a href="../modules/handlebars-compiler.html">handlebars-compiler</a></li>
1019
<li><a href="../modules/highlight.html">highlight</a></li>
1021
<li><a href="../modules/highlight-accentfold.html">highlight-accentfold</a></li>
1023
<li><a href="../modules/highlight-base.html">highlight-base</a></li>
1025
<li><a href="../modules/history.html">history</a></li>
1027
<li><a href="../modules/history-base.html">history-base</a></li>
1029
<li><a href="../modules/history-hash.html">history-hash</a></li>
1031
<li><a href="../modules/history-hash-ie.html">history-hash-ie</a></li>
1033
<li><a href="../modules/history-html5.html">history-html5</a></li>
1035
<li><a href="../modules/imageloader.html">imageloader</a></li>
1037
<li><a href="../modules/intl.html">intl</a></li>
1039
<li><a href="../modules/io.html">io</a></li>
1041
<li><a href="../modules/io-base.html">io-base</a></li>
1043
<li><a href="../modules/io-form.html">io-form</a></li>
1045
<li><a href="../modules/io-queue.html">io-queue</a></li>
1047
<li><a href="../modules/io-upload-iframe.html">io-upload-iframe</a></li>
1049
<li><a href="../modules/io-xdr.html">io-xdr</a></li>
1051
<li><a href="../modules/json.html">json</a></li>
1053
<li><a href="../modules/json-parse.html">json-parse</a></li>
1055
<li><a href="../modules/json-stringify.html">json-stringify</a></li>
1057
<li><a href="../modules/jsonp.html">jsonp</a></li>
1059
<li><a href="../modules/jsonp-url.html">jsonp-url</a></li>
1061
<li><a href="../modules/loader.html">loader</a></li>
1063
<li><a href="../modules/loader-base.html">loader-base</a></li>
1065
<li><a href="../modules/matrix.html">matrix</a></li>
1067
<li><a href="../modules/model.html">model</a></li>
1069
<li><a href="../modules/model-list.html">model-list</a></li>
1071
<li><a href="../modules/node.html">node</a></li>
1073
<li><a href="../modules/node-base.html">node-base</a></li>
1075
<li><a href="../modules/node-core.html">node-core</a></li>
1077
<li><a href="../modules/node-data.html">node-data</a></li>
1079
<li><a href="../modules/node-deprecated.html">node-deprecated</a></li>
1081
<li><a href="../modules/node-event-delegate.html">node-event-delegate</a></li>
1083
<li><a href="../modules/node-event-html5.html">node-event-html5</a></li>
1085
<li><a href="../modules/node-event-simulate.html">node-event-simulate</a></li>
1087
<li><a href="../modules/node-flick.html">node-flick</a></li>
1089
<li><a href="../modules/node-focusmanager.html">node-focusmanager</a></li>
1091
<li><a href="../modules/node-load.html">node-load</a></li>
1093
<li><a href="../modules/node-menunav.html">node-menunav</a></li>
1095
<li><a href="../modules/node-pluginhost.html">node-pluginhost</a></li>
1097
<li><a href="../modules/node-screen.html">node-screen</a></li>
1099
<li><a href="../modules/node-style.html">node-style</a></li>
1101
<li><a href="../modules/oop.html">oop</a></li>
1103
<li><a href="../modules/overlay.html">overlay</a></li>
1105
<li><a href="../modules/panel.html">panel</a></li>
1107
<li><a href="../modules/parallel.html">parallel</a></li>
1109
<li><a href="../modules/pjax.html">pjax</a></li>
1111
<li><a href="../modules/pjax-base.html">pjax-base</a></li>
1113
<li><a href="../modules/pjax-plugin.html">pjax-plugin</a></li>
1115
<li><a href="../modules/plugin.html">plugin</a></li>
1117
<li><a href="../modules/pluginhost.html">pluginhost</a></li>
1119
<li><a href="../modules/pluginhost-base.html">pluginhost-base</a></li>
1121
<li><a href="../modules/pluginhost-config.html">pluginhost-config</a></li>
1123
<li><a href="../modules/profiler.html">profiler</a></li>
1125
<li><a href="../modules/querystring.html">querystring</a></li>
1127
<li><a href="../modules/querystring-parse.html">querystring-parse</a></li>
1129
<li><a href="../modules/querystring-parse-simple.html">querystring-parse-simple</a></li>
1131
<li><a href="../modules/querystring-stringify.html">querystring-stringify</a></li>
1133
<li><a href="../modules/querystring-stringify-simple.html">querystring-stringify-simple</a></li>
1135
<li><a href="../modules/queue-promote.html">queue-promote</a></li>
1137
<li><a href="../modules/range-slider.html">range-slider</a></li>
1139
<li><a href="../modules/recordset.html">recordset</a></li>
1141
<li><a href="../modules/recordset-base.html">recordset-base</a></li>
1143
<li><a href="../modules/recordset-filter.html">recordset-filter</a></li>
1145
<li><a href="../modules/recordset-indexer.html">recordset-indexer</a></li>
1147
<li><a href="../modules/recordset-sort.html">recordset-sort</a></li>
1149
<li><a href="../modules/resize.html">resize</a></li>
1151
<li><a href="../modules/resize-contrain.html">resize-contrain</a></li>
1153
<li><a href="../modules/resize-plugin.html">resize-plugin</a></li>
1155
<li><a href="../modules/resize-proxy.html">resize-proxy</a></li>
1157
<li><a href="../modules/rollup.html">rollup</a></li>
1159
<li><a href="../modules/router.html">router</a></li>
1161
<li><a href="../modules/scrollview.html">scrollview</a></li>
1163
<li><a href="../modules/scrollview-base.html">scrollview-base</a></li>
1165
<li><a href="../modules/scrollview-base-ie.html">scrollview-base-ie</a></li>
1167
<li><a href="../modules/scrollview-list.html">scrollview-list</a></li>
1169
<li><a href="../modules/scrollview-paginator.html">scrollview-paginator</a></li>
1171
<li><a href="../modules/scrollview-scrollbars.html">scrollview-scrollbars</a></li>
1173
<li><a href="../modules/selection.html">selection</a></li>
1175
<li><a href="../modules/selector-css2.html">selector-css2</a></li>
1177
<li><a href="../modules/selector-css3.html">selector-css3</a></li>
1179
<li><a href="../modules/selector-native.html">selector-native</a></li>
1181
<li><a href="../modules/shim-plugin.html">shim-plugin</a></li>
1183
<li><a href="../modules/slider.html">slider</a></li>
1185
<li><a href="../modules/slider-base.html">slider-base</a></li>
1187
<li><a href="../modules/slider-value-range.html">slider-value-range</a></li>
1189
<li><a href="../modules/sortable.html">sortable</a></li>
1191
<li><a href="../modules/sortable-scroll.html">sortable-scroll</a></li>
1193
<li><a href="../modules/stylesheet.html">stylesheet</a></li>
1195
<li><a href="../modules/substitute.html">substitute</a></li>
1197
<li><a href="../modules/swf.html">swf</a></li>
1199
<li><a href="../modules/swfdetect.html">swfdetect</a></li>
1201
<li><a href="../modules/tabview.html">tabview</a></li>
1203
<li><a href="../modules/test.html">test</a></li>
1205
<li><a href="../modules/test-console.html">test-console</a></li>
1207
<li><a href="../modules/text.html">text</a></li>
1209
<li><a href="../modules/text-accentfold.html">text-accentfold</a></li>
1211
<li><a href="../modules/text-wordbreak.html">text-wordbreak</a></li>
1213
<li><a href="../modules/transition.html">transition</a></li>
1215
<li><a href="../modules/uploader.html">uploader</a></li>
1217
<li><a href="../modules/uploader-deprecated.html">uploader-deprecated</a></li>
1219
<li><a href="../modules/uploader-flash.html">uploader-flash</a></li>
1221
<li><a href="../modules/uploader-html5.html">uploader-html5</a></li>
1223
<li><a href="../modules/uploader-queue.html">uploader-queue</a></li>
1225
<li><a href="../modules/view.html">view</a></li>
1227
<li><a href="../modules/view-node-map.html">view-node-map</a></li>
1229
<li><a href="../modules/widget.html">widget</a></li>
1231
<li><a href="../modules/widget-anim.html">widget-anim</a></li>
1233
<li><a href="../modules/widget-autohide.html">widget-autohide</a></li>
1235
<li><a href="../modules/widget-base.html">widget-base</a></li>
1237
<li><a href="../modules/widget-base-ie.html">widget-base-ie</a></li>
1239
<li><a href="../modules/widget-buttons.html">widget-buttons</a></li>
1241
<li><a href="../modules/widget-child.html">widget-child</a></li>
1243
<li><a href="../modules/widget-htmlparser.html">widget-htmlparser</a></li>
1245
<li><a href="../modules/widget-locale.html">widget-locale</a></li>
1247
<li><a href="../modules/widget-modality.html">widget-modality</a></li>
1249
<li><a href="../modules/widget-parent.html">widget-parent</a></li>
1251
<li><a href="../modules/widget-position.html">widget-position</a></li>
1253
<li><a href="../modules/widget-position-align.html">widget-position-align</a></li>
1255
<li><a href="../modules/widget-position-constrain.html">widget-position-constrain</a></li>
1257
<li><a href="../modules/widget-skin.html">widget-skin</a></li>
1259
<li><a href="../modules/widget-stack.html">widget-stack</a></li>
1261
<li><a href="../modules/widget-stdmod.html">widget-stdmod</a></li>
1263
<li><a href="../modules/widget-uievents.html">widget-uievents</a></li>
1265
<li><a href="../modules/yql.html">yql</a></li>
1267
<li><a href="../modules/yui.html">yui</a></li>
1269
<li><a href="../modules/yui-base.html">yui-base</a></li>
1271
<li><a href="../modules/yui-later.html">yui-later</a></li>
1273
<li><a href="../modules/yui-log.html">yui-log</a></li>
1275
<li><a href="../modules/yui-throttle.html">yui-throttle</a></li>
1277
<li><a href="../modules/yui3.html">yui3</a></li>
1286
<div class="yui3-u-3-4">
1287
<div id="api-options">
1289
<label for="api-show-inherited">
1290
<input type="checkbox" id="api-show-inherited" checked>
1294
<label for="api-show-protected">
1295
<input type="checkbox" id="api-show-protected">
1299
<label for="api-show-private">
1300
<input type="checkbox" id="api-show-private">
1306
<div class="apidocs">
1307
<div id="docs-main">
1308
<div class="content">
1309
<h1 class="file-heading">File: yui/js/yui.js</h1>
1312
<pre class="code prettyprint linenums">
1314
* The YUI module contains the components required for building the YUI seed
1315
* file. This includes the script loading mechanism, a simple queue, and
1316
* the core utilities for the library.
1318
* @submodule yui-base
1321
if (typeof YUI != 'undefined') {
1326
The YUI global namespace object. If YUI is already defined, the
1327
existing YUI object will not be overwritten so that defined
1328
namespaces are preserved. It is the constructor for the object
1329
the end user interacts with. As indicated below, each instance
1330
has full custom event support, but only if the event system
1331
is available. This is a self-instantiable factory function. You
1332
can invoke it directly like this:
1334
YUI().use('*', function(Y) {
1338
But it also works like this:
1342
Configuring the YUI object:
1347
}).use('node', function(Y) {
1348
//Node is ready to use
1351
See the API docs for the <a href="config.html">Config</a> class
1352
for the complete list of supported configuration properties accepted
1353
by the YUI constuctor.
1359
@param [o]* {Object} 0..n optional configuration objects. these values
1360
are store in Y.config. See <a href="config.html">Config</a> for the list of supported
1363
/*global YUI*/
1364
/*global YUI_config*/
1365
var YUI = function() {
1370
instanceOf = function(o, type) {
1371
return (o && o.hasOwnProperty && (o instanceof type));
1373
gconf = (typeof YUI_config !== 'undefined') && YUI_config;
1375
if (!(instanceOf(Y, YUI))) {
1378
// set up the core environment
1382
YUI.GlobalConfig is a master configuration that might span
1383
multiple contexts in a non-browser environment. It is applied
1384
first to all instances in all contexts.
1385
@property GlobalConfig
1392
YUI.GlobalConfig = {
1393
filter: 'debug'
1396
YUI().use('node', function(Y) {
1397
//debug files used here
1401
filter: 'min'
1402
}).use('node', function(Y) {
1403
//min files used here
1407
if (YUI.GlobalConfig) {
1408
Y.applyConfig(YUI.GlobalConfig);
1412
YUI_config is a page-level config. It is applied to all
1413
instances created on the page. This is applied after
1414
YUI.GlobalConfig, and before the instance level configuration
1417
@property YUI_config
1422
//Single global var to include before YUI seed file
1424
filter: 'debug'
1427
YUI().use('node', function(Y) {
1428
//debug files used here
1432
filter: 'min'
1433
}).use('node', function(Y) {
1434
//min files used here
1438
Y.applyConfig(gconf);
1441
// bind the specified additional modules for this instance
1448
// Each instance can accept one or more configuration objects.
1449
// These are applied after YUI.GlobalConfig and YUI_Config,
1450
// overriding values set in those config files if there is a '
1451
// matching property.
1452
for (; i < l; i++) {
1453
Y.applyConfig(args[i]);
1459
Y.instanceOf = instanceOf;
1467
VERSION = '@VERSION@',
1468
PERIOD = '.',
1469
BASE = 'http://yui.yahooapis.com/',
1470
DOC_LABEL = 'yui3-js-enabled',
1471
CSS_STAMP_EL = 'yui3-css-stamp',
1472
NOOP = function() {},
1473
SLICE = Array.prototype.slice,
1474
APPLY_TO_AUTH = { 'io.xdrReady': 1, // the functions applyTo
1475
'io.xdrResponse': 1, // can call. this should
1476
'SWF.eventHandler': 1 }, // be done at build time
1477
hasWin = (typeof window != 'undefined'),
1478
win = (hasWin) ? window : null,
1479
doc = (hasWin) ? win.document : null,
1480
docEl = doc && doc.documentElement,
1481
docClass = docEl && docEl.className,
1483
time = new Date().getTime(),
1484
add = function(el, type, fn, capture) {
1485
if (el && el.addEventListener) {
1486
el.addEventListener(type, fn, capture);
1487
} else if (el && el.attachEvent) {
1488
el.attachEvent('on' + type, fn);
1491
remove = function(el, type, fn, capture) {
1492
if (el && el.removeEventListener) {
1493
// this can throw an uncaught exception in FF
1495
el.removeEventListener(type, fn, capture);
1497
} else if (el && el.detachEvent) {
1498
el.detachEvent('on' + type, fn);
1501
handleLoad = function() {
1502
YUI.Env.windowLoaded = true;
1503
YUI.Env.DOMReady = true;
1505
remove(window, 'load', handleLoad);
1508
getLoader = function(Y, o) {
1509
var loader = Y.Env._loader;
1511
//loader._config(Y.config);
1512
loader.ignoreRegistered = false;
1513
loader.onEnd = null;
1515
loader.required = [];
1516
loader.loadType = null;
1518
loader = new Y.Loader(Y.config);
1519
Y.Env._loader = loader;
1521
YUI.Env.core = Y.Array.dedupe([].concat(YUI.Env.core, [ 'loader-base', 'loader-rollup', 'loader-yui3' ]));
1526
clobber = function(r, s) {
1528
if (s.hasOwnProperty(i)) {
1534
ALREADY_DONE = { success: true };
1536
// Stamp the documentElement (HTML) with a class of "yui-loaded" to
1537
// enable styles that need to key off of JS being enabled.
1538
if (docEl && docClass.indexOf(DOC_LABEL) == -1) {
1540
docClass += ' ';
1542
docClass += DOC_LABEL;
1543
docEl.className = docClass;
1546
if (VERSION.indexOf('@') > -1) {
1547
VERSION = '3.3.0'; // dev time hack for cdn test
1552
* Applies a new configuration object to the YUI instance config.
1553
* This will merge new group/module definitions, and will also
1554
* update the loader cache if necessary. Updating Y.config directly
1555
* will not update the cache.
1556
* @method applyConfig
1557
* @param {Object} o the configuration object.
1560
applyConfig: function(o) {
1566
// detail,
1567
config = this.config,
1568
mods = config.modules,
1569
groups = config.groups,
1570
aliases = config.aliases,
1571
loader = this.Env._loader;
1574
if (o.hasOwnProperty(name)) {
1576
if (mods && name == 'modules') {
1577
clobber(mods, attr);
1578
} else if (aliases && name == 'aliases') {
1579
clobber(aliases, attr);
1580
} else if (groups && name == 'groups') {
1581
clobber(groups, attr);
1582
} else if (name == 'win') {
1583
config[name] = (attr && attr.contentWindow) || attr;
1584
config.doc = config[name] ? config[name].document : null;
1585
} else if (name == '_yuid') {
1586
// preserve the guid
1588
config[name] = attr;
1599
* Old way to apply a config to the instance (calls `applyConfig` under the hood)
1602
* @param {Object} o The config to apply
1604
_config: function(o) {
1605
this.applyConfig(o);
1609
* Initialize this YUI instance
1621
* The version number of the YUI instance.
1625
Y.version = VERSION;
1630
mods: {}, // flat module map
1631
versions: {}, // version module map
1633
cdn: BASE + VERSION + '/build/',
1634
// bootstrapped: false,
1641
_guidp: 'y',
1643
// serviced: {},
1644
// Regex in English:
1645
// I'll start at the \b(simpleyui).
1646
// 1. Look in the test string for "simpleyui" or "yui" or
1647
// "yui-base" or "yui-davglass" or "yui-foobar" that comes after a word break. That is, it
1648
// can't match "foyui" or "i_heart_simpleyui". This can be anywhere in the string.
1649
// 2. After #1 must come a forward slash followed by the string matched in #1, so
1650
// "yui-base/yui-base" or "simpleyui/simpleyui" or "yui-pants/yui-pants".
1651
// 3. The second occurence of the #1 token can optionally be followed by "-debug" or "-min",
1652
// so "yui/yui-min", "yui/yui-debug", "yui-base/yui-base-debug". NOT "yui/yui-tshirt".
1653
// 4. This is followed by ".js", so "yui/yui.js", "simpleyui/simpleyui-min.js"
1654
// 0. Going back to the beginning, now. If all that stuff in 1-4 comes after a "?" in the string,
1655
// then capture the junk between the LAST "&" and the string in 1-4. So
1656
// "blah?foo/yui/yui.js" will capture "foo/" and "blah?some/thing.js&3.3.0/build/yui-davglass/yui-davglass.js"
1657
// will capture "3.3.0/build/"
1659
// Regex Exploded:
1660
// (?:\? Find a ?
1661
// (?:[^&]*&) followed by 0..n characters followed by an &
1662
// * in fact, find as many sets of characters followed by a & as you can
1663
// ([^&]*) capture the stuff after the last & in \1
1664
// )? but it's ok if all this ?junk&more_junk stuff isn't even there
1665
// \b(simpleyui| after a word break find either the string "simpleyui" or
1666
// yui(?:-\w+)? the string "yui" optionally followed by a -, then more characters
1667
// ) and store the simpleyui or yui-* string in \2
1668
// \/\2 then comes a / followed by the simpleyui or yui-* string in \2
1669
// (?:-(min|debug))? optionally followed by "-min" or "-debug"
1670
// .js and ending in ".js"
1671
_BASE_RE: /(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,
1672
parseBasePath: function(src, pattern) {
1673
var match = src.match(pattern),
1677
path = RegExp.leftContext || src.slice(0, src.indexOf(match[0]));
1679
// this is to set up the path to the loader. The file
1680
// filter for loader should match the yui include.
1683
// extract correct path for mixed combo urls
1684
// http://yuilibrary.com/projects/yui3/ticket/2528423
1686
path += '?' + match[1];
1695
getBase: G_ENV && G_ENV.getBase ||
1697
var nodes = (doc && doc.getElementsByTagName('script')) || [],
1698
path = Env.cdn, parsed,
1701
for (i = 0, len = nodes.length; i < len; ++i) {
1704
parsed = Y.Env.parseBasePath(src, pattern);
1706
filter = parsed.filter;
1713
// use CDN default
1721
Env._loaded[VERSION] = {};
1723
if (G_ENV && Y !== YUI) {
1724
Env._yidx = ++G_ENV._yidx;
1725
Env._guidp = ('yui_' + VERSION + '_' +
1726
Env._yidx + '_' + time).replace(/\./g, '_');
1727
} else if (YUI._YUI) {
1729
G_ENV = YUI._YUI.Env;
1730
Env._yidx += G_ENV._yidx;
1731
Env._uidx += G_ENV._uidx;
1733
for (prop in G_ENV) {
1734
if (!(prop in Env)) {
1735
Env[prop] = G_ENV[prop];
1743
instances[Y.id] = Y;
1747
Y.constructor = YUI;
1749
// configuration defaults
1750
Y.config = Y.config || {
1757
useBrowserConsole: true,
1762
//Register the CSS stamp element
1763
if (doc && !doc.getElementById(CSS_STAMP_EL)) {
1764
el = doc.createElement('div');
1765
el.innerHTML = '<div id="' + CSS_STAMP_EL + '" style="position: absolute !important; visibility: hidden !important"></div>';
1766
YUI.Env.cssStampEl = el.firstChild;
1767
docEl.insertBefore(YUI.Env.cssStampEl, docEl.firstChild);
1770
Y.config.lang = Y.config.lang || 'en-US';
1772
Y.config.base = YUI.config.base || Y.Env.getBase(Y.Env._BASE_RE);
1774
if (!filter || (!('mindebug').indexOf(filter))) {
1775
filter = 'min';
1777
filter = (filter) ? '-' + filter : filter;
1778
Y.config.loaderPath = YUI.config.loaderPath || 'loader/loader' + filter + '.js';
1783
* Finishes the instance setup. Attaches whatever modules were defined
1784
* when the yui modules was registered.
1788
_setup: function(o) {
1791
mods = YUI.Env.mods,
1792
//extras = Y.config.core || @YUI_CORE@;
1793
extras = Y.config.core || [].concat(YUI.Env.core); //Clone it..
1795
for (i = 0; i < extras.length; i++) {
1796
if (mods[extras[i]]) {
1797
core.push(extras[i]);
1801
Y._attach(['yui-base']);
1808
// Y.log(Y.id + ' initialized', 'info', 'yui');
1812
* Executes a method on a YUI instance with
1813
* the specified id if the specified method is whitelisted.
1815
* @param id {String} the YUI instance id.
1816
* @param method {String} the name of the method to exectute.
1817
* Ex: 'Object.keys'.
1818
* @param args {Array} the arguments to apply to the method.
1819
* @return {Object} the return value from the applied method or null.
1821
applyTo: function(id, method, args) {
1822
if (!(method in APPLY_TO_AUTH)) {
1823
this.log(method + ': applyTo not allowed', 'warn', 'yui');
1827
var instance = instances[id], nest, m, i;
1829
nest = method.split('.');
1831
for (i = 0; i < nest.length; i = i + 1) {
1834
this.log('applyTo not found: ' + method, 'warn', 'yui');
1837
return m && m.apply(instance, args);
1844
Registers a module with the YUI global. The easiest way to create a
1845
first-class YUI module is to use the YUI component build tool.
1847
http://yuilibrary.com/projects/builder
1849
The build system will produce the `YUI.add` wrapper for you module, along
1850
with any configuration info required for the module.
1852
@param name {String} module name.
1853
@param fn {Function} entry point into the module that is used to bind module to the YUI instance.
1854
@param {YUI} fn.Y The YUI instance this module is executed in.
1855
@param {String} fn.name The name of the module
1856
@param version {String} version string.
1857
@param details {Object} optional config data:
1858
@param details.requires {Array} features that must be present before this module can be attached.
1859
@param details.optional {Array} optional features that should be present if loadOptional
1860
is defined. Note: modules are not often loaded this way in YUI 3,
1861
but this field is still useful to inform the user that certain
1862
features in the component will require additional dependencies.
1863
@param details.use {Array} features that are included within this module which need to
1864
be attached automatically when this module is attached. This
1865
supports the YUI 3 rollup system -- a module with submodules
1866
defined will need to have the submodules listed in the 'use'
1867
config. The YUI component build tool does this for you.
1868
@return {YUI} the YUI instance.
1871
YUI.add('davglass', function(Y, name) {
1872
Y.davglass = function() {
1873
alert('Dav was here!');
1875
}, '3.4.0', { requires: ['yui-base', 'harley-davidson', 'mt-dew'] });
1878
add: function(name, fn, version, details) {
1879
details = details || {};
1888
i, versions = env.versions;
1890
env.mods[name] = mod;
1891
versions[version] = versions[version] || {};
1892
versions[version][name] = mod;
1894
for (i in instances) {
1895
if (instances.hasOwnProperty(i)) {
1896
loader = instances[i].Env._loader;
1898
if (!loader.moduleInfo[name] || loader.moduleInfo[name].temp) {
1899
loader.addModule(details, name);
1909
* Executes the function associated with each required
1910
* module, binding the module to the YUI instance.
1911
* @param {Array} r The array of modules to attach
1912
* @param {Boolean} [moot=false] Don't throw a warning if the module is not attached
1916
_attach: function(r, moot) {
1917
var i, name, mod, details, req, use, after,
1918
mods = YUI.Env.mods,
1919
aliases = YUI.Env.aliases,
1921
loader = Y.Env._loader,
1922
done = Y.Env._attached,
1923
len = r.length, loader,
1926
//Check for conditional modules (in a second+ instance) and add their requirements
1927
//TODO I hate this entire method, it needs to be fixed ASAP (3.5.0) ^davglass
1928
for (i = 0; i < len; i++) {
1932
if (loader && loader.conditions[name]) {
1933
Y.Object.each(loader.conditions[name], function(def) {
1934
var go = def && ((def.ua && Y.UA[def.ua]) || (def.test && def.test(Y)));
1944
for (i = 0; i < len; i++) {
1949
if (aliases && aliases[name]) {
1950
Y._attach(aliases[name]);
1954
if (loader && loader.moduleInfo[name]) {
1955
mod = loader.moduleInfo[name];
1959
// Y.log('no js def for: ' + name, 'info', 'yui');
1961
//if (!loader || !loader.moduleInfo[name]) {
1962
//if ((!loader || !loader.moduleInfo[name]) && !moot) {
1963
if (!moot && name) {
1964
if ((name.indexOf('skin-') === -1) && (name.indexOf('css') === -1)) {
1965
Y.Env._missed.push(name);
1966
Y.Env._missed = Y.Array.dedupe(Y.Env._missed);
1967
Y.message('NOT loaded: ' + name, 'warn', 'yui');
1972
//Don't like this, but in case a mod was asked for once, then we fetch it
1973
//We need to remove it from the missed list ^davglass
1974
for (j = 0; j < Y.Env._missed.length; j++) {
1975
if (Y.Env._missed[j] === name) {
1976
Y.message('Found: ' + name + ' (was reported as missing earlier)', 'warn', 'yui');
1977
Y.Env._missed.splice(j, 1);
1980
details = mod.details;
1981
req = details.requires;
1983
after = details.after;
1986
for (j = 0; j < req.length; j++) {
1987
if (!done[req[j]]) {
1988
if (!Y._attach(req)) {
1997
for (j = 0; j < after.length; j++) {
1998
if (!done[after[j]]) {
1999
if (!Y._attach(after, true)) {
2011
Y.error('Attach error: ' + name, e, name);
2017
for (j = 0; j < use.length; j++) {
2018
if (!done[use[j]]) {
2019
if (!Y._attach(use)) {
2037
* Attaches one or more modules to the YUI instance. When this
2038
* is executed, the requirements are analyzed, and one of
2039
* several things can happen:
2041
* * All requirements are available on the page -- The modules
2042
* are attached to the instance. If supplied, the use callback
2043
* is executed synchronously.
2045
* * Modules are missing, the Get utility is not available OR
2046
* the 'bootstrap' config is false -- A warning is issued about
2047
* the missing modules and all available modules are attached.
2049
* * Modules are missing, the Loader is not available but the Get
2050
* utility is and boostrap is not false -- The loader is bootstrapped
2051
* before doing the following....
2053
* * Modules are missing and the Loader is available -- The loader
2054
* expands the dependency tree and fetches missing modules. When
2055
* the loader is finshed the callback supplied to use is executed
2059
* @param modules* {String|Array} 1-n modules to bind (uses arguments array).
2060
* @param [callback] {Function} callback function executed when
2061
* the instance has the required functionality. If included, it
2062
* must be the last parameter.
2063
* @param callback.Y {YUI} The `YUI` instance created for this sandbox
2064
* @param callback.data {Object} Object data returned from `Loader`.
2067
* // loads and attaches dd and its dependencies
2068
* YUI().use('dd', function(Y) {});
2070
* // loads and attaches dd and node as well as all of their dependencies (since 3.4.0)
2071
* YUI().use(['dd', 'node'], function(Y) {});
2073
* // attaches all modules that are available on the page
2074
* YUI().use('*', function(Y) {});
2076
* // intrinsic YUI gallery support (since 3.1.0)
2077
* YUI().use('gallery-yql', function(Y) {});
2079
* // intrinsic YUI 2in3 support (since 3.1.0)
2080
* YUI().use('yui2-datatable', function(Y) {});
2082
* @return {YUI} the YUI instance.
2085
var args = SLICE.call(arguments, 0),
2086
callback = args[args.length - 1],
2094
// The last argument supplied to use can be a load complete callback
2095
if (Y.Lang.isFunction(callback)) {
2100
if (Y.Lang.isArray(args[0])) {
2104
if (Y.config.cacheUse) {
2105
while ((name = args[i++])) {
2106
if (!Env._attached[name]) {
2107
provisioned = false;
2114
Y.log('already provisioned: ' + args, 'info', 'yui');
2116
Y._notify(callback, ALREADY_DONE, args);
2122
Y._useQueue = Y._useQueue || new Y.Queue();
2123
Y._useQueue.add([args, callback]);
2125
Y._use(args, function(Y, response) {
2126
Y._notify(callback, response, args);
2133
* Notify handler from Loader for attachment/load errors
2135
* @param callback {Function} The callback to pass to the `Y.config.loadErrorFn`
2136
* @param response {Object} The response returned from Loader
2137
* @param args {Array} The aruments passed from Loader
2140
_notify: function(callback, response, args) {
2141
if (!response.success && this.config.loadErrorFn) {
2142
this.config.loadErrorFn.call(this, this, callback, response, args);
2143
} else if (callback) {
2145
callback(this, response);
2147
this.error('use callback error', e, args);
2153
* This private method is called from the `use` method queue. To ensure that only one set of loading
2154
* logic is performed at a time.
2157
* @param args* {String} 1-n modules to bind (uses arguments array).
2158
* @param *callback {Function} callback function executed when
2159
* the instance has the required functionality. If included, it
2160
* must be the last parameter.
2162
_use: function(args, callback) {
2165
this._attach(['yui-base']);
2168
var len, loader, handleBoot, handleRLS,
2174
aliases = G_ENV.aliases,
2175
queue = G_ENV._loaderQueue,
2179
boot = config.bootstrap,
2183
fetchCSS = config.fetchCSS,
2184
process = function(names, skip) {
2188
if (!names.length) {
2193
for (i = 0; i < names.length; i++) {
2194
if (aliases[names[i]]) {
2195
a = [].concat(a, aliases[names[i]]);
2203
YArray.each(names, function(name) {
2205
// add this module to full list of things to attach
2210
// only attach a module once
2215
var m = mods[name], req, use;
2219
req = m.details.requires;
2220
use = m.details.use;
2222
// CSS files don't register themselves, see if it has
2223
// been loaded
2224
if (!G_ENV._loaded[VERSION][name]) {
2227
used[name] = true; // probably css
2231
// make sure requirements are attached
2232
if (req && req.length) {
2236
// make sure we grab the submodule dependencies too
2237
if (use && use.length) {
2243
handleLoader = function(fromLoader) {
2244
var response = fromLoader || {
2246
msg: 'not dynamic'
2250
data = response.data;
2255
origMissing = missing;
2259
redo = missing.length;
2261
if (missing.sort().join() ==
2262
origMissing.sort().join()) {
2268
if (redo && data) {
2270
Y._use(missing, function() {
2271
Y.log('Nested use callback: ' + data, 'info', 'yui');
2272
if (Y._attach(data)) {
2273
Y._notify(callback, response, data);
2278
// Y.log('attaching from loader: ' + data, 'info', 'yui');
2279
ret = Y._attach(data);
2282
Y._notify(callback, response, args);
2286
if (Y._useQueue && Y._useQueue.size() && !Y._loading) {
2287
Y._use.apply(Y, Y._useQueue.next());
2292
// Y.log(Y.id + ': use called: ' + a + ' :: ' + callback, 'info', 'yui');
2294
// YUI().use('*'); // bind everything available
2295
if (firstArg === '*') {
2296
ret = Y._attach(Y.Object.keys(mods));
2303
if (mods['loader'] && !Y.Loader) {
2304
Y.log('Loader was found in meta, but it is not attached. Attaching..', 'info', 'yui');
2305
Y._attach(['loader']);
2308
// Y.log('before loader requirements: ' + args, 'info', 'yui');
2310
// use loader to expand dependencies and sort the
2311
// requirements if it is available.
2312
if (boot && Y.Loader && args.length) {
2313
loader = getLoader(Y);
2314
loader.require(args);
2315
loader.ignoreRegistered = true;
2316
loader._boot = true;
2317
loader.calculate(null, (fetchCSS) ? null : 'js');
2318
args = loader.sorted;
2319
loader._boot = false;
2322
// process each requirement and any additional requirements
2323
// the module metadata specifies
2326
len = missing.length;
2329
missing = Y.Object.keys(YArray.hash(missing));
2330
len = missing.length;
2331
Y.log('Modules missing: ' + missing + ', ' + missing.length, 'info', 'yui');
2335
// dynamic load
2336
if (boot && len && Y.Loader) {
2337
// Y.log('Using loader to fetch missing deps: ' + missing, 'info', 'yui');
2338
Y.log('Using Loader', 'info', 'yui');
2340
loader = getLoader(Y);
2341
loader.onEnd = handleLoader;
2344
loader.ignoreRegistered = false;
2345
loader.require(args);
2346
loader.insert(null, (fetchCSS) ? null : 'js');
2348
} else if (boot && len && Y.Get && !Env.bootstrapped) {
2352
handleBoot = function() {
2354
queue.running = false;
2355
Env.bootstrapped = true;
2356
G_ENV._bootstrapping = false;
2357
if (Y._attach(['loader'])) {
2358
Y._use(args, callback);
2362
if (G_ENV._bootstrapping) {
2363
Y.log('Waiting for loader', 'info', 'yui');
2364
queue.add(handleBoot);
2366
G_ENV._bootstrapping = true;
2367
Y.log('Fetching loader: ' + config.base + config.loaderPath, 'info', 'yui');
2368
Y.Get.script(config.base + config.loaderPath, {
2374
Y.log('Attaching available dependencies: ' + args, 'info', 'yui');
2375
ret = Y._attach(args);
2386
Adds a namespace object onto the YUI global if called statically.
2388
// creates YUI.your.namespace.here as nested objects
2389
YUI.namespace("your.namespace.here");
2391
If called as a method on a YUI <em>instance</em>, it creates the
2392
namespace on the instance.
2394
// creates Y.property.package
2395
Y.namespace("property.package");
2397
Dots in the input string cause `namespace` to create nested objects for
2398
each token. If any part of the requested namespace already exists, the
2399
current object will be left in place. This allows multiple calls to
2400
`namespace` to preserve existing namespaced properties.
2402
If the first token in the namespace string is "YAHOO", the token is
2405
Be careful with namespace tokens. Reserved words may work in some browsers
2406
and not others. For instance, the following will fail in some browsers
2407
because the supported version of JavaScript reserves the word "long":
2409
Y.namespace("really.long.nested.namespace");
2411
<em>Note: If you pass multiple arguments to create multiple namespaces, only
2412
the last one created is returned from this function.</em>
2415
@param {String} namespace* namespaces to create.
2416
@return {Object} A reference to the last namespace object created.
2418
namespace: function() {
2419
var a = arguments, o, i = 0, j, d, arg;
2421
for (; i < a.length; i++) {
2422
o = this; //Reset base object per argument or it will get reused from the last
2424
if (arg.indexOf(PERIOD) > -1) { //Skip this if no "." is present
2425
d = arg.split(PERIOD);
2426
for (j = (d[0] == 'YAHOO') ? 1 : 0; j < d.length; j++) {
2427
o[d[j]] = o[d[j]] || {};
2431
o[arg] = o[arg] || {};
2432
o = o[arg]; //Reset base object to the new object so it's returned
2438
// this is replaced if the log module is included
2441
// this is replaced if the dump module is included
2442
dump: function (o) { return ''+o; },
2445
* Report an error. The reporting mechanism is controlled by
2446
* the `throwFail` configuration attribute. If throwFail is
2447
* not specified, the message is written to the Logger, otherwise
2448
* a JS error is thrown. If an `errorFn` is specified in the config
2449
* it must return `true` to keep the error from being thrown.
2451
* @param msg {String} the error message.
2452
* @param e {Error|String} Optional JS error that was caught, or an error string.
2453
* @param src Optional additional info (passed to `Y.config.errorFn` and `Y.message`)
2454
* and `throwFail` is specified, this error will be re-thrown.
2455
* @return {YUI} this YUI instance.
2457
error: function(msg, e, src) {
2458
//TODO Add check for window.onerror here
2462
if (Y.config.errorFn) {
2463
ret = Y.config.errorFn.apply(Y, arguments);
2466
if (Y.config.throwFail && !ret) {
2467
throw (e || new Error(msg));
2469
Y.message(msg, 'error', ''+src); // don't scrub this one
2476
* Generate an id that is unique among all YUI instances
2478
* @param pre {String} optional guid prefix.
2479
* @return {String} the guid.
2481
guid: function(pre) {
2482
var id = this.Env._guidp + '_' + (++this.Env._uidx);
2483
return (pre) ? (pre + id) : id;
2487
* Returns a `guid` associated with an object. If the object
2488
* does not have one, a new one is created unless `readOnly`
2491
* @param o {Object} The object to stamp.
2492
* @param readOnly {Boolean} if `true`, a valid guid will only
2493
* be returned if the object has one assigned to it.
2494
* @return {String} The object's guid or null.
2496
stamp: function(o, readOnly) {
2502
// IE generates its own unique ID for dom nodes
2503
// The uniqueID property of a document node returns a new ID
2504
if (o.uniqueID && o.nodeType && o.nodeType !== 9) {
2507
uid = (typeof o === 'string') ? o : o._yuid;
2524
* Destroys the YUI instance
2528
destroy: function() {
2533
delete instances[Y.id];
2539
* instanceof check for objects that works around
2540
* memory leak in IE when the item tested is
2541
* window/document
2542
* @method instanceOf
2543
* @param o {Object} The object to check.
2544
* @param type {Object} The class to check against.
2549
YUI.prototype = proto;
2551
// inheritance utilities are not available yet
2552
for (prop in proto) {
2553
if (proto.hasOwnProperty(prop)) {
2554
YUI[prop] = proto[prop];
2559
Static method on the Global YUI object to apply a config to all YUI instances.
2560
It's main use case is "mashups" where several third party scripts are trying to write to
2561
a global YUI config at the same time. This way they can all call `YUI.applyConfig({})` instead of
2562
overwriting other scripts configs.
2566
@param {Object} o the configuration object.
2572
fullpath: './davglass.js'
2580
fullpath: './foo.js'
2585
YUI().use('davglass', function(Y) {
2586
//Module davglass will be available here..
2590
YUI.applyConfig = function(o) {
2594
//If there is a GlobalConfig, apply it first to set the defaults
2595
if (YUI.GlobalConfig) {
2596
this.prototype.applyConfig.call(this, YUI.GlobalConfig);
2598
//Apply this config to it
2599
this.prototype.applyConfig.call(this, o);
2600
//Reset GlobalConfig to the combined config
2601
YUI.GlobalConfig = this.config;
2604
// set up the environment
2608
// add a window load event at load time so we can capture
2609
// the case where it fires before dynamic loading is
2610
// complete.
2611
add(window, 'load', handleLoad);
2617
YUI.Env.remove = remove;
2619
/*global exports*/
2620
// Support the CommonJS method for exporting our single global
2621
if (typeof exports == 'object') {
2629
* The config object contains all of the configuration options for
2630
* the `YUI` instance. This object is supplied by the implementer
2631
* when instantiating a `YUI` instance. Some properties have default
2632
* values if they are not supplied by the implementer. This should
2633
* not be updated directly because some values are cached. Use
2634
* `applyConfig()` to update the config object on a YUI instance that
2635
* has already been configured.
2642
* Allows the YUI seed file to fetch the loader component and library
2643
* metadata to dynamically load additional dependencies.
2645
* @property bootstrap
2651
* Turns on writing Ylog messages to the browser console.
2659
* Log to the browser console if debug is on and the browser has a
2660
* supported console.
2662
* @property useBrowserConsole
2668
* A hash of log sources that should be logged. If specified, only
2669
* log messages from these sources will be logged.
2671
* @property logInclude
2676
* A hash of log sources that should be not be logged. If specified,
2677
* all sources are logged if not on this list.
2679
* @property logExclude
2684
* Set to true if the yui seed file was dynamically loaded in
2685
* order to bootstrap components relying on the window load event
2686
* and the `domready` custom event.
2688
* @property injected
2694
* If `throwFail` is set, `Y.error` will generate or re-throw a JS Error.
2695
* Otherwise the failure is logged.
2697
* @property throwFail
2703
* The window/frame that this instance should operate in.
2707
* @default the window hosting YUI
2711
* The document associated with the 'win' configuration.
2715
* @default the document hosting YUI
2719
* A list of modules that defines the YUI core (overrides the default list).
2723
* @default [ get,features,intl-base,yui-log,yui-later,loader-base, loader-rollup, loader-yui3 ]
2727
* A list of languages in order of preference. This list is matched against
2728
* the list of available languages in modules that the YUI instance uses to
2729
* determine the best possible localization of language sensitive modules.
2730
* Languages are represented using BCP 47 language tags, such as "en-GB" for
2731
* English as used in the United Kingdom, or "zh-Hans-CN" for simplified
2732
* Chinese as used in China. The list can be provided as a comma-separated
2733
* list or as an array.
2736
* @type string|string[]
2740
* The default date format
2741
* @property dateFormat
2743
* @deprecated use configuration in `DataType.Date.format()` instead.
2747
* The default locale
2750
* @deprecated use `config.lang` instead.
2754
* The default interval when polling in milliseconds.
2755
* @property pollInterval
2761
* The number of dynamic nodes to insert by default before
2762
* automatically removing them. This applies to script nodes
2763
* because removing the node will not make the evaluated script
2764
* unavailable. Dynamic CSS is not auto purged, because removing
2765
* a linked style sheet will also remove the style definitions.
2766
* @property purgethreshold
2772
* The default interval when polling in milliseconds.
2773
* @property windowResizeDelay
2779
* Base directory for dynamic loading
2785
* The secure base dir (not implemented)
2786
* For dynamic loading.
2787
* @property secureBase
2792
* The YUI combo service base dir. Ex: `http://yui.yahooapis.com/combo?`
2793
* For dynamic loading.
2794
* @property comboBase
2799
* The root path to prepend to module path for the combo service.
2800
* Ex: 3.0.0b1/build/
2801
* For dynamic loading.
2807
* A filter to apply to result urls. This filter will modify the default
2808
* path for all modules. The default path for the YUI library is the
2809
* minified version of the files (e.g., event-min.js). The filter property
2810
* can be a predefined filter or a custom filter. The valid predefined
2813
* <dt>DEBUG</dt>
2814
* <dd>Selects the debug versions of the library (e.g., event-debug.js).
2815
* This option will automatically include the Logger widget</dd>
2816
* <dt>RAW</dt>
2817
* <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
2819
* You can also define a custom filter, which must be an object literal
2820
* containing a search expression and a replace string:
2823
* 'searchExp': "-min\\.js",
2824
* 'replaceStr': "-debug.js"
2827
* For dynamic loading.
2830
* @type string|object
2834
* The `skin` config let's you configure application level skin
2835
* customizations. It contains the following attributes which
2836
* can be specified to override the defaults:
2838
* // The default skin, which is automatically applied if not
2839
* // overriden by a component-specific skin definition.
2840
* // Change this in to apply a different skin globally
2841
* defaultSkin: 'sam',
2843
* // This is combined with the loader base property to get
2844
* // the default root directory for a skin.
2845
* base: 'assets/skins/',
2847
* // Any component-specific overrides can be specified here,
2848
* // making it possible to load different skins for different
2849
* // components. It is possible to load more than one skin
2850
* // for a given component as well.
2852
* slider: ['capsule', 'round']
2855
* For dynamic loading.
2861
* Hash of per-component filter specification. If specified for a given
2862
* component, this overrides the filter config.
2864
* For dynamic loading.
2870
* Use the YUI combo service to reduce the number of http connections
2871
* required to load your dependencies. Turning this off will
2872
* disable combo handling for YUI and all module groups configured
2873
* with a combo service.
2875
* For dynamic loading.
2879
* @default true if 'base' is not supplied, false if it is.
2883
* A list of modules that should never be dynamically loaded
2890
* A list of modules that should always be loaded when required, even if already
2891
* present on the page.
2898
* Node or id for a node that should be used as the insertion point for new
2899
* nodes. For dynamic loading.
2901
* @property insertBefore
2906
* Object literal containing attributes to add to dynamically loaded script
2908
* @property jsAttributes
2913
* Object literal containing attributes to add to dynamically loaded link
2915
* @property cssAttributes
2920
* Number of milliseconds before a timeout occurs when dynamically
2921
* loading nodes. If not set, there is no timeout.
2927
* Callback for the 'CSSComplete' event. When dynamically loading YUI
2928
* components with CSS, this property fires when the CSS is finished
2929
* loading but script loading is still ongoing. This provides an
2930
* opportunity to enhance the presentation of a loading page a little
2931
* bit before the entire loading process is done.
2938
* A hash of module definitions to add to the list of YUI components.
2939
* These components can then be dynamically loaded side by side with
2940
* YUI via the `use()` method. This is a hash, the key is the module
2941
* name, and the value is an object literal specifying the metdata
2942
* for the module. See `Loader.addModule` for the supported module
2943
* metadata fields. Also see groups, which provides a way to
2944
* configure the base and combo spec for a set of modules.
2948
* requires: ['node'],
2949
* fullpath: '/mymod1/mymod1.js'
2952
* requires: ['mymod1'],
2953
* fullpath: '/mymod2/mymod2.js'
2955
* mymod3: '/js/mymod3.js',
2956
* mycssmod: '/css/mycssmod.css'
2965
* Aliases are dynamic groups of modules that can be used as
2970
* davglass: [ 'node', 'yql', 'dd' ],
2971
* mine: [ 'davglass', 'autocomplete']
2973
* }).use('mine', function(Y) {
2974
* //Node, YQL, DD &amp; AutoComplete available here..
2982
* A hash of module group definitions. It for each group you
2983
* can specify a list of modules and the base path and
2984
* combo spec to use when dynamically loading the modules.
2988
* // specify whether or not this group has a combo service
2991
* // The comboSeperator to use with this group's combo handler
2992
* comboSep: ';',
2994
* // The maxURLLength for this server
2995
* maxURLLength: 500,
2997
* // the base path for non-combo paths
2998
* base: 'http://yui.yahooapis.com/2.8.0r4/build/',
3000
* // the path to the combo service
3001
* comboBase: 'http://yui.yahooapis.com/combo?',
3003
* // a fragment to prepend to the path attribute when
3004
* // when building combo urls
3005
* root: '2.8.0r4/build/',
3007
* // the module definitions
3010
* path: "yahoo-dom-event/yahoo-dom-event.js"
3013
* path: "animation/animation.js",
3014
* requires: ['yui2_yde']
3025
* The loader 'path' attribute to the loader itself. This is combined
3026
* with the 'base' attribute to dynamically load the loader component
3027
* when boostrapping with the get utility alone.
3029
* @property loaderPath
3031
* @default loader/loader-min.js
3035
* Specifies whether or not YUI().use(...) will attempt to load CSS
3036
* resources at all. Any truthy value will cause CSS dependencies
3037
* to load when fetching script. The special value 'force' will
3038
* cause CSS dependencies to be loaded even if no script is needed.
3040
* @property fetchCSS
3041
* @type boolean|string
3046
* The default gallery version to build gallery module urls
3053
* The default YUI 2 version to build yui2 module urls. This is for
3054
* intrinsic YUI 2 support via the 2in3 project. Also see the '2in3'
3055
* config for pulling different revisions of the wrapped YUI 2
3064
* The 2in3 project is a deployment of the various versions of YUI 2
3065
* deployed as first-class YUI 3 modules. Eventually, the wrapper
3066
* for the modules will change (but the underlying YUI 2 code will
3067
* be the same), and you can select a particular version of
3068
* the wrapper modules via this config.
3076
* Alternative console log function for use in environments without
3077
* a supported native console. The function is executed in the
3078
* YUI instance context.
3085
* A callback to execute when Y.error is called. It receives the
3086
* error message and an javascript error object if Y.error was
3087
* executed because a javascript error was caught. The function
3088
* is executed in the YUI instance context. Returning `true` from this
3089
* function will stop the Error from being thrown.
3097
* A callback to execute when the loader fails to load one or
3098
* more resource. This could be because of a script load
3099
* failure. It can also fail if a javascript module fails
3100
* to register itself, but only when the 'requireRegistration'
3101
* is true. If this function is defined, the use() callback will
3102
* only be called when the loader succeeds, otherwise it always
3103
* executes unless there was a javascript error when attaching
3107
* @property loadErrorFn
3112
* When set to true, the YUI loader will expect that all modules
3113
* it is responsible for loading will be first-class YUI modules
3114
* that register themselves with the YUI global. If this is
3115
* set to true, loader will fail if the module registration fails
3116
* to happen after the script is loaded.
3119
* @property requireRegistration
3125
* Cache serviced use() requests.
3127
* @property cacheUse
3130
* @deprecated no longer used
3134
* Whether or not YUI should use native ES5 functionality when available for
3135
* features like `Y.Array.each()`, `Y.Object()`, etc. When `false`, YUI will
3136
* always use its own fallback implementations instead of relying on ES5
3137
* functionality, even when it's available.
3139
* @method useNativeES5
3154
<script src="../assets/vendor/prettify/prettify-min.js"></script>
3155
<script>prettyPrint();</script>
3156
<script src="../assets/js/yui-prettify.js"></script>
3157
<script src="../assets/../api.js"></script>
3158
<script src="../assets/js/api-filter.js"></script>
3159
<script src="../assets/js/api-list.js"></script>
3160
<script src="../assets/js/api-search.js"></script>
3161
<script src="../assets/js/apidocs.js"></script>