github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

yui / yui2

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 159
    • 77
  • Source
  • Commits
  • Network (77)
  • Downloads (1,216)
  • Graphs
  • Tree: 084d42d

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master
  • Switch Tags (1,216)
    • yui2-2569
    • yui2-2568
    • yui2-2567
    • yui2-2566
    • yui2-2565
    • yui2-2564
    • yui2-2563
    • yui2-2562
    • yui2-2561
    • yui2-2560
    • yui2-2559
    • yui2-2558
    • yui2-2557
    • yui2-2556
    • yui2-2555
    • yui2-2554
    • yui2-2553
    • yui2-2552
    • yui2-2551
    • yui2-2550
    • yui2-2549
    • yui2-2548
    • yui2-2547
    • yui2-2546
    • yui2-2545
    • yui2-2544
    • yui2-2543
    • yui2-2542
    • yui2-2541
    • yui2-2540
    • yui2-2539
    • yui2-2538
    • yui2-2537
    • yui2-2536
    • yui2-2535
    • yui2-2534
    • yui2-2533
    • yui2-2532
    • yui2-2531
    • yui2-2530
    • yui2-2529
    • yui2-2528
    • yui2-2527
    • yui2-2526
    • yui2-2525
    • yui2-2524
    • yui2-2523
    • yui2-2522
    • yui2-2521
    • yui2-2520
    • yui2-2519
    • yui2-2518
    • yui2-2517
    • yui2-2516
    • yui2-2515
    • yui2-2514
    • yui2-2513
    • yui2-2512
    • yui2-2511
    • yui2-2510
    • yui2-2509
    • yui2-2508
    • yui2-2507
    • yui2-2506
    • yui2-2505
    • yui2-2504
    • yui2-2503
    • yui2-2502
    • yui2-2501
    • yui2-2500
    • yui2-2499
    • yui2-2498
    • yui2-2497
    • yui2-2496
    • yui2-2495
    • yui2-2494
    • yui2-2493
    • yui2-2492
    • yui2-2491
    • yui2-2490
    • yui2-2489
    • yui2-2488
    • yui2-2487
    • yui2-2486
    • yui2-2485
    • yui2-2484
    • yui2-2483
    • yui2-2482
    • yui2-2481
    • yui2-2480
    • yui2-2479
    • yui2-2478
    • yui2-2477
    • yui2-2476
    • yui2-2475
    • yui2-2474
    • yui2-2473
    • yui2-2472
    • yui2-2471
    • yui2-2470
    • yui2-2469
    • yui2-2468
    • yui2-2467
    • yui2-2466
    • yui2-2465
    • yui2-2464
    • yui2-2463
    • yui2-2462
    • yui2-2461
    • yui2-2460
    • yui2-2459
    • yui2-2458
    • yui2-2457
    • yui2-2456
    • yui2-2455
    • yui2-2454
    • yui2-2453
    • yui2-2452
    • yui2-2451
    • yui2-2450
    • yui2-2449
    • yui2-2448
    • yui2-2447
    • yui2-2446
    • yui2-2445
    • yui2-2444
    • yui2-2443
    • yui2-2442
    • yui2-2441
    • yui2-2440
    • yui2-2439
    • yui2-2438
    • yui2-2437
    • yui2-2436
    • yui2-2435
    • yui2-2434
    • yui2-2433
    • yui2-2432
    • yui2-2431
    • yui2-2430
    • yui2-2429
    • yui2-2428
    • yui2-2427
    • yui2-2426
    • yui2-2425
    • yui2-2424
    • yui2-2423
    • yui2-2422
    • yui2-2421
    • yui2-2420
    • yui2-2419
    • yui2-2418
    • yui2-2417
    • yui2-2416
    • yui2-2415
    • yui2-2414
    • yui2-2413
    • yui2-2412
    • yui2-2411
    • yui2-2410
    • yui2-2409
    • yui2-2408
    • yui2-2407
    • yui2-2406
    • yui2-2405
    • yui2-2404
    • yui2-2403
    • yui2-2402
    • yui2-2401
    • yui2-2400
    • yui2-2399
    • yui2-2398
    • yui2-2397
    • yui2-2396
    • yui2-2395
    • yui2-2394
    • yui2-2393
    • yui2-2392
    • yui2-2391
    • yui2-2390
    • yui2-2389
    • yui2-2388
    • yui2-2387
    • yui2-2386
    • yui2-2385
    • yui2-2384
    • yui2-2383
    • yui2-2382
    • yui2-2381
    • yui2-2380
    • yui2-2379
    • yui2-2378
    • yui2-2377
    • yui2-2376
    • yui2-2375
    • yui2-2374
    • yui2-2373
    • yui2-2372
    • yui2-2371
    • yui2-2370
    • yui2-2369
    • yui2-2368
    • yui2-2367
    • yui2-2366
    • yui2-2365
    • yui2-2364
    • yui2-2363
    • yui2-2362
    • yui2-2361
    • yui2-2360
    • yui2-2359
    • yui2-2358
    • yui2-2357
    • yui2-2356
    • yui2-2355
    • yui2-2354
    • yui2-2353
    • yui2-2352
    • yui2-2351
    • yui2-2350
    • yui2-2349
    • yui2-2348
    • yui2-2347
    • yui2-2346
    • yui2-2345
    • yui2-2344
    • yui2-2343
    • yui2-2342
    • yui2-2341
    • yui2-2340
    • yui2-2339
    • yui2-2338
    • yui2-2337
    • yui2-2336
    • yui2-2335
    • yui2-2334
    • yui2-2333
    • yui2-2332
    • yui2-2331
    • yui2-2330
    • yui2-2329
    • yui2-2328
    • yui2-2327
    • yui2-2326
    • yui2-2325
    • yui2-2324
    • yui2-2323
    • yui2-2322
    • yui2-2321
    • yui2-2320
    • yui2-2319
    • yui2-2318
    • yui2-2317
    • yui2-2316
    • yui2-2315
    • yui2-2314
    • yui2-2313
    • yui2-2312
    • yui2-2311
    • yui2-2310
    • yui2-2309
    • yui2-2308
    • yui2-2307
    • yui2-2306
    • yui2-2305
    • yui2-2304
    • yui2-2303
    • yui2-2302
    • yui2-2301
    • yui2-2300
    • yui2-2299
    • yui2-2298
    • yui2-2297
    • yui2-2296
    • yui2-2295
    • yui2-2294
    • yui2-2293
    • yui2-2292
    • yui2-2291
    • yui2-2290
    • yui2-2289
    • yui2-2288
    • yui2-2287
    • yui2-2286
    • yui2-2285
    • yui2-2284
    • yui2-2283
    • yui2-2282
    • yui2-2281
    • yui2-2280
    • yui2-2279
    • yui2-2278
    • yui2-2277
    • yui2-2276
    • yui2-2275
    • yui2-2274
    • yui2-2273
    • yui2-2272
    • yui2-2271
    • yui2-2270
    • yui2-2269
    • yui2-2268
    • yui2-2267
    • yui2-2266
    • yui2-2265
    • yui2-2264
    • yui2-2263
    • yui2-2262
    • yui2-2261
    • yui2-2260
    • yui2-2259
    • yui2-2258
    • yui2-2257
    • yui2-2256
    • yui2-2255
    • yui2-2254
    • yui2-2253
    • yui2-2252
    • yui2-2251
    • yui2-2250
    • yui2-2249
    • yui2-2248
    • yui2-2247
    • yui2-2246
    • yui2-2245
    • yui2-2244
    • yui2-2243
    • yui2-2242
    • yui2-2241
    • yui2-2240
    • yui2-2239
    • yui2-2238
    • yui2-2237
    • yui2-2236
    • yui2-2235
    • yui2-2234
    • yui2-2233
    • yui2-2232
    • yui2-2231
    • yui2-2230
    • yui2-2229
    • yui2-2228
    • yui2-2227
    • yui2-2226
    • yui2-2225
    • yui2-2224
    • yui2-2223
    • yui2-2222
    • yui2-2221
    • yui2-2220
    • yui2-2219
    • yui2-2218
    • yui2-2217
    • yui2-2216
    • yui2-2215
    • yui2-2214
    • yui2-2213
    • yui2-2212
    • yui2-2211
    • yui2-2210
    • yui2-2209
    • yui2-2208
    • yui2-2207
    • yui2-2206
    • yui2-2205
    • yui2-2204
    • yui2-2203
    • yui2-2202
    • yui2-2201
    • yui2-2200
    • yui2-2199
    • yui2-2198
    • yui2-2197
    • yui2-2196
    • yui2-2195
    • yui2-2194
    • yui2-2193
    • yui2-2192
    • yui2-2191
    • yui2-2190
    • yui2-2189
    • yui2-2188
    • yui2-2187
    • yui2-2186
    • yui2-2185
    • yui2-2184
    • yui2-2183
    • yui2-2182
    • yui2-2181
    • yui2-2180
    • yui2-2179
    • yui2-2178
    • yui2-2177
    • yui2-2176
    • yui2-2175
    • yui2-2174
    • yui2-2173
    • yui2-2172
    • yui2-2171
    • yui2-2170
    • yui2-2169
    • yui2-2168
    • yui2-2167
    • yui2-2166
    • yui2-2165
    • yui2-2164
    • yui2-2163
    • yui2-2162
    • yui2-2161
    • yui2-2160
    • yui2-2159
    • yui2-2158
    • yui2-2157
    • yui2-2156
    • yui2-2155
    • yui2-2154
    • yui2-2153
    • yui2-2152
    • yui2-2151
    • yui2-2150
    • yui2-2149
    • yui2-2148
    • yui2-2147
    • yui2-2146
    • yui2-2145
    • yui2-2144
    • yui2-2143
    • yui2-2142
    • yui2-2141
    • yui2-2140
    • yui2-2139
    • yui2-2138
    • yui2-2137
    • yui2-2136
    • yui2-2135
    • yui2-2134
    • yui2-2133
    • yui2-2132
    • yui2-2131
    • yui2-2130
    • yui2-2129
    • yui2-2128
    • yui2-2127
    • yui2-2126
    • yui2-2125
    • yui2-2124
    • yui2-2123
    • yui2-2122
    • yui2-2121
    • yui2-2120
    • yui2-2119
    • yui2-2118
    • yui2-2117
    • yui2-2116
    • yui2-2115
    • yui2-2114
    • yui2-2113
    • yui2-2112
    • yui2-2111
    • yui2-2110
    • yui2-2109
    • yui2-2108
    • yui2-2107
    • yui2-2106
    • yui2-2105
    • yui2-2104
    • yui2-2103
    • yui2-2102
    • yui2-2101
    • yui2-2100
    • yui2-2099
    • yui2-2098
    • yui2-2097
    • yui2-2096
    • yui2-2095
    • yui2-2094
    • yui2-2093
    • yui2-2092
    • yui2-2091
    • yui2-2090
    • yui2-2089
    • yui2-2088
    • yui2-2087
    • yui2-2086
    • yui2-2085
    • yui2-2084
    • yui2-2083
    • yui2-2082
    • yui2-2081
    • yui2-2080
    • yui2-2079
    • yui2-2078
    • yui2-2077
    • yui2-2076
    • yui2-2075
    • yui2-2074
    • yui2-2073
    • yui2-2072
    • yui2-2071
    • yui2-2070
    • yui2-2069
    • yui2-2068
    • yui2-2067
    • yui2-2066
    • yui2-2065
    • yui2-2064
    • yui2-2063
    • yui2-2062
    • yui2-2061
    • yui2-2060
    • yui2-2059
    • yui2-2058
    • yui2-2057
    • yui2-2056
    • yui2-2055
    • yui2-2054
    • yui2-2053
    • yui2-2052
    • yui2-2051
    • yui2-2050
    • yui2-2049
    • yui2-2048
    • yui2-2047
    • yui2-2046
    • yui2-2045
    • yui2-2044
    • yui2-2043
    • yui2-2042
    • yui2-2041
    • yui2-2040
    • yui2-2039
    • yui2-2038
    • yui2-2037
    • yui2-2036
    • yui2-2035
    • yui2-2034
    • yui2-2033
    • yui2-2032
    • yui2-2031
    • yui2-2030
    • yui2-2029
    • yui2-2028
    • yui2-2027
    • yui2-2026
    • yui2-2025
    • yui2-2024
    • yui2-2023
    • yui2-2022
    • yui2-2021
    • yui2-2020
    • yui2-2019
    • yui2-2018
    • yui2-2017
    • yui2-2016
    • yui2-2015
    • yui2-2014
    • yui2-2013
    • yui2-2012
    • yui2-2011
    • yui2-2010
    • yui2-2009
    • yui2-2008
    • yui2-2007
    • yui2-2006
    • yui2-2005
    • yui2-2004
    • yui2-2003
    • yui2-2002
    • yui2-2001
    • yui2-2000
    • yui2-1999
    • yui2-1998
    • yui2-1997
    • yui2-1996
    • yui2-1995
    • yui2-1994
    • yui2-1993
    • yui2-1992
    • yui2-1991
    • yui2-1990
    • yui2-1989
    • yui2-1988
    • yui2-1987
    • yui2-1986
    • yui2-1985
    • yui2-1984
    • yui2-1983
    • yui2-1982
    • yui2-1981
    • yui2-1980
    • yui2-1979
    • yui2-1978
    • yui2-1977
    • yui2-1976
    • yui2-1975
    • yui2-1974
    • yui2-1973
    • yui2-1972
    • yui2-1971
    • yui2-1970
    • yui2-1969
    • yui2-1968
    • yui2-1967
    • yui2-1966
    • yui2-1965
    • yui2-1964
    • yui2-1963
    • yui2-1962
    • yui2-1961
    • yui2-1960
    • yui2-1959
    • yui2-1958
    • yui2-1957
    • yui2-1956
    • yui2-1955
    • yui2-1954
    • yui2-1953
    • yui2-1952
    • yui2-1951
    • yui2-1950
    • yui2-1949
    • yui2-1948
    • yui2-1947
    • yui2-1946
    • yui2-1945
    • yui2-1944
    • yui2-1943
    • yui2-1942
    • yui2-1941
    • yui2-1940
    • yui2-1939
    • yui2-1938
    • yui2-1937
    • yui2-1936
    • yui2-1935
    • yui2-1934
    • yui2-1933
    • yui2-1932
    • yui2-1931
    • yui2-1930
    • yui2-1929
    • yui2-1928
    • yui2-1927
    • yui2-1926
    • yui2-1925
    • yui2-1924
    • yui2-1923
    • yui2-1922
    • yui2-1921
    • yui2-1920
    • yui2-1919
    • yui2-1918
    • yui2-1917
    • yui2-1916
    • yui2-1915
    • yui2-1914
    • yui2-1913
    • yui2-1912
    • yui2-1911
    • yui2-1909
    • yui2-1908
    • yui2-1907
    • yui2-1906
    • yui2-1905
    • yui2-1904
    • yui2-1903
    • yui2-1902
    • yui2-1901
    • yui2-1900
    • yui2-1899
    • yui2-1898
    • yui2-1897
    • yui2-1896
    • yui2-1895
    • yui2-1894
    • yui2-1893
    • yui2-1892
    • yui2-1891
    • yui2-1890
    • yui2-1889
    • yui2-1888
    • yui2-1887
    • yui2-1886
    • yui2-1885
    • yui2-1884
    • yui2-1883
    • yui2-1882
    • yui2-1881
    • yui2-1880
    • yui2-1879
    • yui2-1878
    • yui2-1877
    • yui2-1876
    • yui2-1875
    • yui2-1874
    • yui2-1873
    • yui2-1872
    • yui2-1871
    • yui2-1870
    • yui2-1869
    • yui2-1868
    • yui2-1867
    • yui2-1866
    • yui2-1865
    • yui2-1864
    • yui2-1863
    • yui2-1862
    • yui2-1861
    • yui2-1860
    • yui2-1859
    • yui2-1858
    • yui2-1857
    • yui2-1856
    • yui2-1855
    • yui2-1854
    • yui2-1853
    • yui2-1852
    • yui2-1851
    • yui2-1850
    • yui2-1849
    • yui2-1848
    • yui2-1847
    • yui2-1846
    • yui2-1845
    • yui2-1844
    • yui2-1843
    • yui2-1842
    • yui2-1841
    • yui2-1840
    • yui2-1839
    • yui2-1838
    • yui2-1837
    • yui2-1836
    • yui2-1835
    • yui2-1834
    • yui2-1833
    • yui2-1832
    • yui2-1831
    • yui2-1830
    • yui2-1829
    • yui2-1828
    • yui2-1827
    • yui2-1826
    • yui2-1825
    • yui2-1824
    • yui2-1823
    • yui2-1822
    • yui2-1821
    • yui2-1820
    • yui2-1819
    • yui2-1818
    • yui2-1817
    • yui2-1816
    • yui2-1815
    • yui2-1814
    • yui2-1813
    • yui2-1812
    • yui2-1811
    • yui2-1810
    • yui2-1809
    • yui2-1808
    • yui2-1807
    • yui2-1806
    • yui2-1805
    • yui2-1804
    • yui2-1803
    • yui2-1802
    • yui2-1801
    • yui2-1800
    • yui2-1799
    • yui2-1798
    • yui2-1797
    • yui2-1796
    • yui2-1795
    • yui2-1794
    • yui2-1793
    • yui2-1792
    • yui2-1791
    • yui2-1790
    • yui2-1789
    • yui2-1788
    • yui2-1787
    • yui2-1786
    • yui2-1785
    • yui2-1784
    • yui2-1783
    • yui2-1782
    • yui2-1781
    • yui2-1780
    • yui2-1779
    • yui2-1778
    • yui2-1777
    • yui2-1776
    • yui2-1775
    • yui2-1774
    • yui2-1773
    • yui2-1772
    • yui2-1771
    • yui2-1770
    • yui2-1769
    • yui2-1768
    • yui2-1767
    • yui2-1766
    • yui2-1765
    • yui2-1764
    • yui2-1763
    • yui2-1762
    • yui2-1761
    • yui2-1760
    • yui2-1759
    • yui2-1758
    • yui2-1757
    • yui2-1756
    • yui2-1755
    • yui2-1754
    • yui2-1753
    • yui2-1752
    • yui2-1751
    • yui2-1750
    • yui2-1749
    • yui2-1748
    • yui2-1747
    • yui2-1746
    • yui2-1745
    • yui2-1744
    • yui2-1743
    • yui2-1742
    • yui2-1741
    • yui2-1740
    • yui2-1739
    • yui2-1738
    • yui2-1737
    • yui2-1736
    • yui2-1735
    • yui2-1734
    • yui2-1733
    • yui2-1732
    • yui2-1731
    • yui2-1730
    • yui2-1729
    • yui2-1728
    • yui2-1727
    • yui2-1726
    • yui2-1725
    • yui2-1724
    • yui2-1723
    • yui2-1722
    • yui2-1721
    • yui2-1720
    • yui2-1719
    • yui2-1718
    • yui2-1717
    • yui2-1716
    • yui2-1715
    • yui2-1714
    • yui2-1713
    • yui2-1712
    • yui2-1711
    • yui2-1710
    • yui2-1709
    • yui2-1708
    • yui2-1707
    • yui2-1706
    • yui2-1705
    • yui2-1704
    • yui2-1703
    • yui2-1702
    • yui2-1701
    • yui2-1700
    • yui2-1699
    • yui2-1698
    • yui2-1697
    • yui2-1696
    • yui2-1695
    • yui2-1694
    • yui2-1693
    • yui2-1692
    • yui2-1691
    • yui2-1690
    • yui2-1689
    • yui2-1688
    • yui2-1687
    • yui2-1686
    • yui2-1685
    • yui2-1684
    • yui2-1683
    • yui2-1682
    • yui2-1681
    • yui2-1680
    • yui2-1679
    • yui2-1678
    • yui2-1677
    • yui2-1676
    • yui2-1675
    • yui2-1674
    • yui2-1673
    • yui2-1672
    • yui2-1671
    • yui2-1670
    • yui2-1669
    • yui2-1668
    • yui2-1667
    • yui2-1666
    • yui2-1665
    • yui2-1664
    • yui2-1663
    • yui2-1662
    • yui2-1661
    • yui2-1660
    • yui2-1659
    • yui2-1658
    • yui2-1657
    • yui2-1656
    • yui2-1655
    • yui2-1654
    • yui2-1653
    • yui2-1652
    • yui2-1651
    • yui2-1650
    • yui2-1649
    • yui2-1648
    • yui2-1647
    • yui2-1646
    • yui2-1645
    • yui2-1644
    • yui2-1643
    • yui2-1642
    • yui2-1641
    • yui2-1640
    • yui2-1639
    • yui2-1638
    • yui2-1637
    • yui2-1636
    • yui2-1635
    • yui2-1634
    • yui2-1633
    • yui2-1632
    • yui2-1631
    • yui2-1630
    • yui2-1629
    • yui2-1628
    • yui2-1627
    • yui2-1626
    • yui2-1625
    • yui2-1624
    • yui2-1623
    • yui2-1622
    • yui2-1621
    • yui2-1620
    • yui2-1619
    • yui2-1618
    • yui2-1617
    • yui2-1616
    • yui2-1615
    • yui2-1614
    • yui2-1613
    • yui2-1612
    • yui2-1611
    • yui2-1610
    • yui2-1609
    • yui2-1608
    • yui2-1607
    • yui2-1606
    • yui2-1605
    • yui2-1604
    • yui2-1603
    • yui2-1602
    • yui2-1601
    • yui2-1600
    • yui2-1599
    • yui2-1598
    • yui2-1597
    • yui2-1596
    • yui2-1595
    • yui2-1594
    • yui2-1593
    • yui2-1592
    • yui2-1591
    • yui2-1590
    • yui2-1589
    • yui2-1588
    • yui2-1587
    • yui2-1586
    • yui2-1585
    • yui2-1584
    • yui2-1583
    • yui2-1582
    • yui2-1581
    • yui2-1580
    • yui2-1579
    • yui2-1578
    • yui2-1577
    • yui2-1576
    • yui2-1575
    • yui2-1574
    • yui2-1573
    • yui2-1572
    • yui2-1571
    • yui2-1570
    • yui2-1569
    • yui2-1568
    • yui2-1567
    • yui2-1566
    • yui2-1565
    • yui2-1564
    • yui2-1563
    • yui2-1562
    • yui2-1561
    • yui2-1560
    • yui2-1559
    • yui2-1558
    • yui2-1557
    • yui2-1556
    • yui2-1555
    • yui2-1554
    • yui2-1553
    • yui2-1552
    • yui2-1551
    • yui2-1550
    • yui2-1549
    • yui2-1548
    • yui2-1547
    • yui2-1546
    • yui2-1545
    • yui2-1544
    • yui2-1543
    • yui2-1542
    • yui2-1541
    • yui2-1540
    • yui2-1539
    • yui2-1538
    • yui2-1537
    • yui2-1536
    • yui2-1535
    • yui2-1534
    • yui2-1533
    • yui2-1532
    • yui2-1531
    • yui2-1530
    • yui2-1529
    • yui2-1528
    • yui2-1527
    • yui2-1526
    • yui2-1525
    • yui2-1524
    • yui2-1523
    • yui2-1522
    • yui2-1521
    • yui2-1520
    • yui2-1519
    • yui2-1518
    • yui2-1517
    • yui2-1516
    • yui2-1515
    • yui2-1514
    • yui2-1513
    • yui2-1512
    • yui2-1511
    • yui2-1510
    • yui2-1509
    • yui2-1508
    • yui2-1507
    • yui2-1506
    • yui2-1505
    • yui2-1504
    • yui2-1503
    • yui2-1502
    • yui2-1501
    • yui2-1500
    • yui2-1499
    • yui2-1498
    • yui2-1497
    • yui2-1496
    • yui2-1495
    • yui2-1494
    • yui2-1493
    • yui2-1492
    • yui2-1491
    • yui2-1490
    • yui2-1489
    • yui2-1488
    • yui2-1487
    • yui2-1486
    • yui2-1485
    • yui2-1484
    • yui2-1483
    • yui2-1482
    • yui2-1481
    • yui2-1480
    • yui2-1479
    • yui2-1478
    • yui2-1477
    • yui2-1476
    • yui2-1475
    • yui2-1474
    • yui2-1473
    • yui2-1472
    • yui2-1471
    • yui2-1470
    • yui2-1469
    • yui2-1468
    • yui2-1467
    • yui2-1466
    • yui2-1465
    • yui2-1464
    • yui2-1463
    • yui2-1462
    • yui2-1461
    • yui2-1460
    • yui2-1459
    • yui2-1458
    • yui2-1457
    • yui2-1456
    • yui2-1455
    • yui2-1454
    • yui2-1453
    • yui2-1452
    • yui2-1451
    • yui2-1450
    • yui2-1449
    • yui2-1448
    • yui2-1447
    • yui2-1446
    • yui2-1445
    • yui2-1444
    • yui2-1443
    • yui2-1442
    • yui2-1441
    • yui2-1440
    • yui2-1439
    • yui2-1438
    • yui2-1437
    • yui2-1436
    • yui2-1435
    • yui2-1434
    • yui2-1433
    • yui2-1432
    • yui2-1431
    • yui2-1430
    • yui2-1429
    • yui2-1428
    • yui2-1427
    • yui2-1426
    • yui2-1425
    • yui2-1424
    • yui2-1423
    • yui2-1422
    • yui2-1421
    • yui2-1420
    • yui2-1419
    • yui2-1418
    • yui2-1417
    • yui2-1416
    • yui2-1415
    • yui2-1414
    • yui2-1413
    • yui2-1412
    • yui2-1411
    • yui2-1410
    • yui2-1409
    • yui2-1408
    • yui2-1407
    • yui2-1406
    • yui2-1405
    • yui2-1404
    • yui2-1403
    • yui2-1402
    • yui2-1401
    • yui2-1400
    • yui2-1399
    • yui2-1398
    • yui2-1397
    • yui2-1396
    • yui2-1395
    • yui2-1394
    • yui2-1393
    • yui2-1392
    • yui2-1391
    • yui2-1390
    • yui2-1389
    • yui2-1388
    • yui2-1387
    • yui2-1386
    • yui2-1385
    • yui2-1384
    • yui2-1383
    • yui2-1382
    • yui2-1381
    • yui2-1380
    • yui2-1379
    • yui2-1378
    • yui2-1377
    • yui2-1376
    • yui2-1375
    • yui2-1374
    • yui2-1373
    • yui2-1372
    • yui2-1371
    • yui2-1370
    • yui2-1369
    • yui2-1368
    • yui2-1367
    • yui2-1366
    • yui2-1365
    • yui2-1364
    • yui2-1363
    • yui2-1362
    • yui2-1361
    • yui2-1360
    • yui2-1359
    • yui2-1358
    • yui2-1357
    • test
    • ${label}
    • 2.8.0
    • 2.7.0
  • Comments
Sending Request…

YUI 2.x Source Tree — Read more

  Cancel

http://developer.yahoo.com/yui/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

nodes get charset='utf-8' by default. [fixes #2528670].
apm (author)
Thu Dec 10 11:35:00 -0800 2009
commit  084d42d713cc2cc254fc399964f8be7b8b7ce7ef
tree    da53bf831ba9d2f07b0da4ce03d2cc13a3a2f750
parent  10cba592f5d914b93b6fef7e803f74e8a03f7547
M build/get/get-debug.js 247 ••••
M build/get/get-min.js 2 ••
M build/get/get.js 245 ••••
M build/yuiloader/yuiloader-debug.js 251 ••••
M build/yuiloader/yuiloader-min.js 2 ••
M build/yuiloader/yuiloader.js 251 ••••
M src/get/README 3 •••
M src/get/js/Get.js 247 ••••
0
build/get/get-debug.js
...
35
36
37
38
39
40
41
42
43
44
...
46
47
48
49
 
50
51
52
53
 
 
 
 
 
54
55
56
...
61
62
63
64
65
 
 
66
67
68
 
 
69
70
71
72
73
74
 
75
76
77
...
81
82
83
84
 
85
86
87
...
95
96
97
98
 
99
100
101
...
105
106
107
108
 
109
110
111
...
117
118
119
120
 
121
122
123
124
125
126
127
 
128
129
130
...
135
136
137
138
 
139
140
 
141
142
143
...
145
146
147
148
 
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
...
171
172
173
174
 
175
176
 
177
178
179
180
 
181
182
183
184
185
186
187
188
 
 
189
190
 
191
192
193
...
195
196
197
198
 
199
200
 
201
202
203
 
 
204
205
 
206
207
208
...
211
212
213
214
 
 
215
216
 
 
 
217
218
219
...
221
222
223
224
 
225
226
227
...
239
240
241
242
243
244
245
...
255
256
257
258
 
259
260
261
...
267
268
269
270
 
271
272
273
...
297
298
299
300
 
301
302
303
...
314
315
316
317
 
318
319
320
321
322
323
324
 
325
326
 
327
328
329
330
331
332
333
334
335
336
337
338
339
340
 
341
342
343
344
345
346
347
348
 
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
 
 
 
 
 
 
372
373
374
375
376
377
378
379
 
 
 
380
381
382
...
387
388
389
390
 
391
392
 
393
394
395
...
405
406
407
408
 
409
410
411
412
413
414
415
416
417
 
 
418
419
420
...
439
440
441
442
443
 
 
444
445
446
447
448
 
449
450
451
...
477
478
479
480
 
481
482
 
483
484
485
486
487
488
 
 
 
489
490
491
492
493
494
495
 
496
497
498
...
525
526
527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
529
530
...
573
574
575
576
577
 
 
578
579
580
...
35
36
37
 
 
 
 
38
39
40
...
42
43
44
 
45
46
47
48
 
49
50
51
52
53
54
55
56
...
61
62
63
 
 
64
65
66
 
 
67
68
69
70
71
72
73
 
74
75
76
77
...
81
82
83
 
84
85
86
87
...
95
96
97
 
98
99
100
101
...
105
106
107
 
108
109
110
111
...
117
118
119
 
120
121
122
123
124
125
126
 
127
128
129
130
...
135
136
137
 
138
139
 
140
141
142
143
...
145
146
147
 
148
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
151
152
...
154
155
156
 
157
158
 
159
160
161
162
 
163
164
165
166
167
168
169
 
 
170
171
172
 
173
174
175
176
...
178
179
180
 
181
182
 
183
184
 
 
185
186
187
 
188
189
190
191
...
194
195
196
 
197
198
199
 
200
201
202
203
204
205
...
207
208
209
 
210
211
212
213
...
225
226
227
 
228
229
230
...
240
241
242
 
243
244
245
246
...
252
253
254
 
255
256
257
258
...
282
283
284
 
285
286
287
288
...
299
300
301
 
302
303
304
305
306
307
308
 
309
310
 
311
312
313
314
 
 
 
 
 
 
 
 
 
 
 
315
316
 
 
 
 
 
 
 
317
318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
320
321
322
323
324
325
 
 
326
 
 
327
 
328
329
330
331
332
333
...
338
339
340
 
341
342
 
343
344
345
346
...
356
357
358
 
359
360
361
362
363
364
 
 
 
 
365
366
367
368
369
...
388
389
390
 
 
391
392
393
394
395
396
 
397
398
399
400
...
426
427
428
 
429
430
 
431
432
433
434
435
436
 
437
438
439
440
441
442
443
444
445
 
446
447
448
449
...
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
...
584
585
586
 
 
587
588
589
590
591
0
@@ -35,10 +35,6 @@ YAHOO.util.Get = function() {
0
      */
0
         nidx=0, 
0
 
0
-        // ridx=0,
0
-
0
-        // sandboxFrame=null,
0
-
0
     /**
0
      * interal property used to prevent multiple simultaneous purge 
0
      * processes
0
@@ -46,11 +42,15 @@ YAHOO.util.Get = function() {
0
      * @type boolean
0
      * @private
0
      */
0
-        purging=false,
0
+        _purging=false,
0
 
0
         ua=YAHOO.env.ua, 
0
         
0
-        lang=YAHOO.lang;
0
+        lang=YAHOO.lang,
0
+    
0
+    _fail, 
0
+    _purge, 
0
+    _track,
0
     
0
     /** 
0
      * Generates an HTML element, this is not appended to a document
0
@@ -61,17 +61,17 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _node = function(type, attr, win) {
0
-        var w = win || window, d=w.document, n=d.createElement(type);
0
+    _node = function(type, attr, win) {
0
+        var w = win || window, d=w.document, n=d.createElement(type), i;
0
 
0
-        for (var i in attr) {
0
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
0
+        for (i in attr) {
0
+            if (attr.hasOwnProperty(i)) {
0
                 n.setAttribute(i, attr[i]);
0
             }
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a link node
0
@@ -81,7 +81,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _linkNode = function(url, win, attributes) {
0
+    _linkNode = function(url, win, attributes) {
0
 
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
@@ -95,7 +95,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("link", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a script node
0
@@ -105,7 +105,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _scriptNode = function(url, win, attributes) {
0
+    _scriptNode = function(url, win, attributes) {
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
             type: "text/javascript",
0
@@ -117,14 +117,14 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("script", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Returns the data payload for callback functions
0
      * @method _returnData
0
      * @private
0
      */
0
-    var _returnData = function(q, msg) {
0
+    _returnData = function(q, msg) {
0
         return {
0
                 tId: q.tId,
0
                 win: q.win,
0
@@ -135,9 +135,9 @@ YAHOO.util.Get = function() {
0
                     _purge(this.tId);
0
                 }
0
             };
0
-    };
0
+    },
0
 
0
-    var _get = function(nId, tId) {
0
+    _get = function(nId, tId) {
0
         var q = queues[tId],
0
             n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
0
         if (!n) {
0
@@ -145,25 +145,8 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
-    /*
0
-     * The request failed, execute fail handler with whatever
0
-     * was accomplished.  There isn't a failure case at the
0
-     * moment unless you count aborted transactions
0
-     * @method _fail
0
-     * @param id {string} the id of the request
0
-     * @private
0
-     */
0
-    var _fail = function(id, msg) {
0
-        YAHOO.log("get failure: " + msg, "warn", "Get");
0
-        var q = queues[id];
0
-        // execute failure callback
0
-        if (q.onFailure) {
0
-            var sc=q.scope || q.win;
0
-            q.onFailure.call(sc, _returnData(q, msg));
0
-        }
0
-    };
0
 
0
     /**
0
      * The request is complete, so executing the requester's callback
0
@@ -171,23 +154,23 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _finish = function(id) {
0
+    _finish = function(id) {
0
         YAHOO.log("Finishing transaction " + id);
0
-        var q = queues[id];
0
+        var q = queues[id], msg, context;
0
         q.finished = true;
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
 
0
         // execute success callback
0
         if (q.onSuccess) {
0
-            var sc=q.scope || q.win;
0
-            q.onSuccess.call(sc, _returnData(q));
0
+            context = q.scope || q.win;
0
+            q.onSuccess.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Timeout detected
0
@@ -195,14 +178,14 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _timeout = function(id) {
0
+    _timeout = function(id) {
0
         YAHOO.log("Timeout " + id, "info", "get");
0
-        var q = queues[id];
0
+        var q = queues[id], context;
0
         if (q.onTimeout) {
0
-            var sc=q.scope || q;
0
-            q.onTimeout.call(sc, _returnData(q));
0
+            context = q.scope || q;
0
+            q.onTimeout.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Loads the next item for a given request
0
@@ -211,9 +194,12 @@ YAHOO.util.Get = function() {
0
      * @param loaded {string} the url that was just loaded, if any
0
      * @private
0
      */
0
-    var _next = function(id, loaded) {
0
+    _next = function(id, loaded) {
0
+
0
         YAHOO.log("_next: " + id + ", loaded: " + loaded, "info", "Get");
0
-        var q = queues[id];
0
+
0
+        var q = queues[id], w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], 
0
+            n, msg, url, s, extra;
0
 
0
         if (q.timer) {
0
             // Y.log('cancel timer');
0
@@ -221,7 +207,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
@@ -239,7 +225,6 @@ YAHOO.util.Get = function() {
0
             }
0
         }
0
 
0
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
0
 
0
         if (q.url.length === 0) {
0
             // Safari 2.x workaround - There is no way to know when 
0
@@ -255,7 +240,7 @@ YAHOO.util.Get = function() {
0
                 // arbitrary timeout.  It is possible that the browser does
0
                 // block subsequent script execution in this case for a limited
0
                 // time.
0
-                var extra = _scriptNode(null, q.win, q.attributes);
0
+                extra = _scriptNode(null, q.win, q.attributes);
0
                 extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
0
                 q.nodes.push(extra); h.appendChild(extra);
0
 
0
@@ -267,7 +252,7 @@ YAHOO.util.Get = function() {
0
         } 
0
 
0
 
0
-        var url = q.url[0];
0
+        url = q.url[0];
0
 
0
         // if the url is undefined, this is probably a trailing comma problem in IE
0
         if (!url) {
0
@@ -297,7 +282,7 @@ YAHOO.util.Get = function() {
0
 
0
         // add it to the head or insert it before 'insertBefore'
0
         if (q.insertBefore) {
0
-            var s = _get(q.insertBefore, id);
0
+            s = _get(q.insertBefore, id);
0
             if (s) {
0
                 s.parentNode.insertBefore(n, s);
0
             }
0
@@ -314,69 +299,35 @@ YAHOO.util.Get = function() {
0
         if ((ua.webkit || ua.gecko) && q.type === "css") {
0
             _next(id, url);
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Removes processed queues and corresponding nodes
0
      * @method _autoPurge
0
      * @private
0
      */
0
-    var _autoPurge = function() {
0
+    _autoPurge = function() {
0
 
0
-        if (purging) {
0
+        if (_purging) {
0
             return;
0
         }
0
 
0
-        purging = true;
0
-        for (var i in queues) {
0
-            var q = queues[i];
0
-            if (q.autopurge && q.finished) {
0
-                _purge(q.tId);
0
-                delete queues[i];
0
-            }
0
-        }
0
-
0
-        purging = false;
0
-    };
0
+        _purging = true;
0
 
0
-    /**
0
-     * Removes the nodes for the specified queue
0
-     * @method _purge
0
-     * @private
0
-     */
0
-    var _purge = function(tId) {
0
-        if (queues[tId]) {
0
+        var i, q;
0
 
0
-            var q     = queues[tId],
0
-                nodes = q.nodes, 
0
-                l     = nodes.length, 
0
-                d     = q.win.document, 
0
-                h     = d.getElementsByTagName("head")[0],
0
-                sib, i, node, attr;
0
-
0
-            if (q.insertBefore) {
0
-                sib = _get(q.insertBefore, tId);
0
-                if (sib) {
0
-                    h = sib.parentNode;
0
-                }
0
-            }
0
-
0
-            for (i=0; i<l; i=i+1) {
0
-                node = nodes[i];
0
-                if (node.clearAttributes) {
0
-                    node.clearAttributes();
0
-                } else {
0
-                    for (attr in node) {
0
-                        delete node[attr];
0
-                    }
0
+        for (i in queues) {
0
+            if (queues.hasOwnProperty(i)) {
0
+                q = queues[i];
0
+                if (q.autopurge && q.finished) {
0
+                    _purge(q.tId);
0
+                    delete queues[i];
0
                 }
0
-
0
-                h.removeChild(node);
0
             }
0
-
0
-            q.nodes = [];
0
         }
0
-    };
0
+
0
+        _purging = false;
0
+    },
0
 
0
     /**
0
      * Saves the state for the request and begins loading
0
@@ -387,9 +338,9 @@ YAHOO.util.Get = function() {
0
      * @param opts the hash of options for this request
0
      * @private
0
      */
0
-    var _queue = function(type, url, opts) {
0
+    _queue = function(type, url, opts) {
0
 
0
-        var id = "q" + (qidx++);
0
+        var id = "q" + (qidx++), q;
0
         opts = opts || {};
0
 
0
         if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
0
@@ -405,16 +356,14 @@ YAHOO.util.Get = function() {
0
             nodes: []
0
         });
0
 
0
-        var q = queues[id];
0
+        q = queues[id];
0
         q.win = q.win || window;
0
         q.scope = q.scope || q.win;
0
         q.autopurge = ("autopurge" in q) ? q.autopurge : 
0
                       (type === "script") ? true : false;
0
 
0
-        if (opts.charset) {
0
-            q.attributes = q.attributes || {};
0
-            q.attributes.charset = opts.charset;
0
-        }
0
+        q.attributes = q.attributes || {};
0
+        q.attributes.charset = opts.charset || q.attributes.charset || 'utf-8';
0
 
0
         lang.later(0, q, _next, id);
0
 
0
@@ -439,13 +388,13 @@ YAHOO.util.Get = function() {
0
      * the default is _next
0
      * @private
0
      */
0
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
0
-        var f = trackfn || _next;
0
+    _track = function(type, n, id, url, win, qlength, trackfn) {
0
+        var f = trackfn || _next, rs, q, a, freq, w, l, i, msg;
0
 
0
         // IE supports the readystatechange event for script and css nodes
0
         if (ua.ie) {
0
             n.onreadystatechange = function() {
0
-                var rs = this.readyState;
0
+                rs = this.readyState;
0
                 if ("loaded" === rs || "complete" === rs) {
0
                     YAHOO.log(id + " onload " + url, "info", "Get");
0
                     n.onreadystatechange = null;
0
@@ -477,22 +426,24 @@ YAHOO.util.Get = function() {
0
                 } else {
0
                     // Poll for the existence of the named variable, if it
0
                     // was supplied.
0
-                    var q = queues[id];
0
+                    q = queues[id];
0
                     if (q.varName) {
0
-                        var freq=YAHOO.util.Get.POLL_FREQ;
0
+                        freq = YAHOO.util.Get.POLL_FREQ;
0
                         YAHOO.log("Polling for " + q.varName[0]);
0
                         q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
0
                         q.attempts = 0;
0
                         q._cache = q.varName[0].split(".");
0
                         q.timer = lang.later(freq, q, function(o) {
0
-                            var a=this._cache, l=a.length, w=this.win, i;
0
+                            a = this._cache;
0
+                            l = a.length; 
0
+                            w = this.win;
0
                             for (i=0; i<l; i=i+1) {
0
                                 w = w[a[i]];
0
                                 if (!w) {
0
                                     // if we have exausted our attempts, give up
0
                                     this.attempts++;
0
                                     if (this.attempts++ > this.maxattempts) {
0
-                                        var msg = "Over retry limit, giving up";
0
+                                        msg = "Over retry limit, giving up";
0
                                         q.timer.cancel();
0
                                         _fail(id, msg);
0
                                     } else {
0
@@ -525,6 +476,66 @@ YAHOO.util.Get = function() {
0
         }
0
     };
0
 
0
+    /*
0
+     * The request failed, execute fail handler with whatever
0
+     * was accomplished.  There isn't a failure case at the
0
+     * moment unless you count aborted transactions
0
+     * @method _fail
0
+     * @param id {string} the id of the request
0
+     * @private
0
+     */
0
+    _fail = function(id, msg) {
0
+        YAHOO.log("get failure: " + msg, "warn", "Get");
0
+        var q = queues[id], context;
0
+        // execute failure callback
0
+        if (q.onFailure) {
0
+            context = q.scope || q.win;
0
+            q.onFailure.call(context, _returnData(q, msg));
0
+        }
0
+    };
0
+
0
+    /**
0
+     * Removes the nodes for the specified queue
0
+     * @method _purge
0
+     * @private
0
+     */
0
+    _purge = function(tId) {
0
+        if (queues[tId]) {
0
+
0
+            var q     = queues[tId],
0
+                nodes = q.nodes, 
0
+                l     = nodes.length, 
0
+                d     = q.win.document, 
0
+                h     = d.getElementsByTagName("head")[0],
0
+                sib, i, node, attr;
0
+
0
+            if (q.insertBefore) {
0
+                sib = _get(q.insertBefore, tId);
0
+                if (sib) {
0
+                    h = sib.parentNode;
0
+                }
0
+            }
0
+
0
+            for (i=0; i<l; i=i+1) {
0
+                node = nodes[i];
0
+                if (node.clearAttributes) {
0
+                    node.clearAttributes();
0
+                } else {
0
+                    for (attr in node) {
0
+                        if (node.hasOwnProperty(attr)) {
0
+                            delete node[attr];
0
+                        }
0
+                    }
0
+                }
0
+
0
+                h.removeChild(node);
0
+            }
0
+
0
+            q.nodes = [];
0
+        }
0
+    };
0
+
0
+
0
     return {
0
 
0
         /**
0
@@ -573,8 +584,8 @@ YAHOO.util.Get = function() {
0
          * script() or css()
0
          */
0
         abort: function(o) {
0
-            var id = (lang.isString(o)) ? o : o.tId;
0
-            var q = queues[id];
0
+            var id = (lang.isString(o)) ? o : o.tId,
0
+                q = queues[id];
0
             if (q) {
0
                 YAHOO.log("Aborting " + id, "info", "Get");
0
                 q.aborted = true;
0
build/get/get-min.js
...
1
2
 
3
...
 
1
2
3
0
@@ -1 +1 @@
0
-YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"@VERSION@",build:"@BUILD@"});
0
\ No newline at end of file
0
+YAHOO.util.Get=function(){var M={},K=0,R=0,L=false,N=YAHOO.env.ua,S=YAHOO.lang,Q,D,E,I=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W),V;for(V in T){if(T.hasOwnProperty(V)){Z.setAttribute(V,T[V]);}}return Z;},H=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return I("link",W,V);},P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return I("script",W,V);},A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};},B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;},C=function(W){var U=M[W],V,T;U.finished=true;if(U.aborted){V="transaction "+W+" was aborted";Q(W,V);return;}if(U.onSuccess){T=U.scope||U.win;U.onSuccess.call(T,A(U));}},O=function(V){var U=M[V],T;if(U.onTimeout){T=U.scope||U;U.onTimeout.call(T,A(U));}},F=function(V,Z){var U=M[V],c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W,X,T,e,Y;if(U.timer){U.timer.cancel();}if(U.aborted){X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}T=U.url[0];if(!T){U.url.shift();return F(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=H(T,c,U.attributes);}E(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){F(V,T);}},J=function(){if(L){return;}L=true;var T,U;for(T in M){if(M.hasOwnProperty(T)){U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}}L=false;},G=function(U,T,V){var X="q"+(K++),W;V=V||{};if(K%YAHOO.util.Get.PURGE_THRESH===0){J();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;W.attributes=W.attributes||{};W.attributes.charset=V.charset||W.attributes.charset||"utf-8";S.later(0,W,F,X);return{tId:X};};E=function(j,Y,W,U,d,e,h){var g=h||F,b,T,k,V,m,Z,c,X;if(N.ie){Y.onreadystatechange=function(){b=this.readyState;if("loaded"===b||"complete"===b){Y.onreadystatechange=null;g(W,U);}};}else{if(N.webkit){if(j==="script"){if(N.webkit>=420){Y.addEventListener("load",function(){g(W,U);});}else{T=M[W];if(T.varName){V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(a){k=this._cache;Z=k.length;m=this.win;for(c=0;c<Z;c=c+1){m=m[k[c]];if(!m){this.attempts++;if(this.attempts++>this.maxattempts){X="Over retry limit, giving up";T.timer.cancel();Q(W,X);}else{}return;}}T.timer.cancel();g(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,g,[W,U]);}}}}else{Y.onload=function(){g(W,U);};}}};Q=function(W,V){var U=M[W],T;if(U.onFailure){T=U.scope||U.win;U.onFailure.call(T,A(U,V));}};D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){if(W.hasOwnProperty(b)){delete W[b];}}}a.removeChild(W);}T.nodes=[];}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId,T=M[V];if(T){T.aborted=true;}},script:function(T,U){return G("script",T,U);},css:function(T,U){return G("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"@VERSION@",build:"@BUILD@"});
0
\ No newline at end of file
0
build/get/get.js
...
35
36
37
38
39
40
41
42
43
44
...
46
47
48
49
 
50
51
52
53
 
 
 
 
 
54
55
56
...
61
62
63
64
65
 
 
66
67
68
 
 
69
70
71
72
73
74
 
75
76
77
...
81
82
83
84
 
85
86
87
...
95
96
97
98
 
99
100
101
...
105
106
107
108
 
109
110
111
...
117
118
119
120
 
121
122
123
124
125
126
127
 
128
129
130
...
135
136
137
138
 
139
140
 
141
142
143
...
145
146
147
148
 
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
...
170
171
172
173
174
 
 
175
176
177
178
 
179
180
181
182
183
184
185
186
 
 
187
188
 
189
190
191
...
193
194
195
196
197
 
 
198
199
200
 
 
201
202
 
203
204
205
...
208
209
210
211
212
 
 
 
 
 
213
214
215
...
217
218
219
220
 
221
222
223
...
235
236
237
238
239
240
241
...
251
252
253
254
 
255
256
257
...
263
264
265
266
 
267
268
269
...
291
292
293
294
 
295
296
297
...
307
308
309
310
 
311
312
313
314
315
316
317
 
318
319
 
320
321
322
323
324
325
326
327
328
329
330
 
331
332
333
 
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
 
 
 
 
 
 
365
366
367
368
369
370
371
372
 
 
 
373
374
375
...
380
381
382
383
 
384
385
 
386
387
388
...
398
399
400
401
 
402
403
404
405
406
407
408
409
410
 
 
411
412
413
...
432
433
434
435
436
 
 
437
438
439
440
441
 
442
443
444
...
468
469
470
471
 
472
473
 
474
475
476
477
478
 
 
 
479
480
481
482
483
484
485
 
486
487
488
...
512
513
514
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
516
517
...
559
560
561
562
563
 
 
564
565
566
...
35
36
37
 
 
 
 
38
39
40
...
42
43
44
 
45
46
47
48
 
49
50
51
52
53
54
55
56
...
61
62
63
 
 
64
65
66
 
 
67
68
69
70
71
72
73
 
74
75
76
77
...
81
82
83
 
84
85
86
87
...
95
96
97
 
98
99
100
101
...
105
106
107
 
108
109
110
111
...
117
118
119
 
120
121
122
123
124
125
126
 
127
128
129
130
...
135
136
137
 
138
139
 
140
141
142
143
...
145
146
147
 
148
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
151
152
...
154
155
156
 
 
157
158
159
160
161
 
162
163
164
165
166
167
168
 
 
169
170
171
 
172
173
174
175
...
177
178
179
 
 
180
181
182
 
 
183
184
185
 
186
187
188
189
...
192
193
194
 
 
195
196
197
198
199
200
201
202
...
204
205
206
 
207
208
209
210
...
222
223
224
 
225
226
227
...
237
238
239
 
240
241
242
243
...
249
250
251
 
252
253
254
255
...
277
278
279
 
280
281
282
283
...
293
294
295
 
296
297
298
299
300
301
302
 
303
304
 
305
306
307
308
 
 
 
 
 
 
 
 
309
310
 
 
311
312
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
314
315
316
317
318
319
 
 
320
 
 
321
 
322
323
324
325
326
327
...
332
333
334
 
335
336
 
337
338
339
340
...
350
351
352
 
353
354
355
356
357
358
 
 
 
 
359
360
361
362
363
...
382
383
384
 
 
385
386
387
388
389
390
 
391
392
393
394
...
418
419
420
 
421
422
 
423
424
425
426
427
 
428
429
430
431
432
433
434
435
436
 
437
438
439
440
...
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
...
570
571
572
 
 
573
574
575
576
577
0
@@ -35,10 +35,6 @@ YAHOO.util.Get = function() {
0
      */
0
         nidx=0, 
0
 
0
-        // ridx=0,
0
-
0
-        // sandboxFrame=null,
0
-
0
     /**
0
      * interal property used to prevent multiple simultaneous purge 
0
      * processes
0
@@ -46,11 +42,15 @@ YAHOO.util.Get = function() {
0
      * @type boolean
0
      * @private
0
      */
0
-        purging=false,
0
+        _purging=false,
0
 
0
         ua=YAHOO.env.ua, 
0
         
0
-        lang=YAHOO.lang;
0
+        lang=YAHOO.lang,
0
+    
0
+    _fail, 
0
+    _purge, 
0
+    _track,
0
     
0
     /** 
0
      * Generates an HTML element, this is not appended to a document
0
@@ -61,17 +61,17 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _node = function(type, attr, win) {
0
-        var w = win || window, d=w.document, n=d.createElement(type);
0
+    _node = function(type, attr, win) {
0
+        var w = win || window, d=w.document, n=d.createElement(type), i;
0
 
0
-        for (var i in attr) {
0
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
0
+        for (i in attr) {
0
+            if (attr.hasOwnProperty(i)) {
0
                 n.setAttribute(i, attr[i]);
0
             }
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a link node
0
@@ -81,7 +81,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _linkNode = function(url, win, attributes) {
0
+    _linkNode = function(url, win, attributes) {
0
 
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
@@ -95,7 +95,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("link", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a script node
0
@@ -105,7 +105,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _scriptNode = function(url, win, attributes) {
0
+    _scriptNode = function(url, win, attributes) {
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
             type: "text/javascript",
0
@@ -117,14 +117,14 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("script", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Returns the data payload for callback functions
0
      * @method _returnData
0
      * @private
0
      */
0
-    var _returnData = function(q, msg) {
0
+    _returnData = function(q, msg) {
0
         return {
0
                 tId: q.tId,
0
                 win: q.win,
0
@@ -135,9 +135,9 @@ YAHOO.util.Get = function() {
0
                     _purge(this.tId);
0
                 }
0
             };
0
-    };
0
+    },
0
 
0
-    var _get = function(nId, tId) {
0
+    _get = function(nId, tId) {
0
         var q = queues[tId],
0
             n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
0
         if (!n) {
0
@@ -145,24 +145,8 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
-    /*
0
-     * The request failed, execute fail handler with whatever
0
-     * was accomplished.  There isn't a failure case at the
0
-     * moment unless you count aborted transactions
0
-     * @method _fail
0
-     * @param id {string} the id of the request
0
-     * @private
0
-     */
0
-    var _fail = function(id, msg) {
0
-        var q = queues[id];
0
-        // execute failure callback
0
-        if (q.onFailure) {
0
-            var sc=q.scope || q.win;
0
-            q.onFailure.call(sc, _returnData(q, msg));
0
-        }
0
-    };
0
 
0
     /**
0
      * The request is complete, so executing the requester's callback
0
@@ -170,22 +154,22 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _finish = function(id) {
0
-        var q = queues[id];
0
+    _finish = function(id) {
0
+        var q = queues[id], msg, context;
0
         q.finished = true;
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
 
0
         // execute success callback
0
         if (q.onSuccess) {
0
-            var sc=q.scope || q.win;
0
-            q.onSuccess.call(sc, _returnData(q));
0
+            context = q.scope || q.win;
0
+            q.onSuccess.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Timeout detected
0
@@ -193,13 +177,13 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _timeout = function(id) {
0
-        var q = queues[id];
0
+    _timeout = function(id) {
0
+        var q = queues[id], context;
0
         if (q.onTimeout) {
0
-            var sc=q.scope || q;
0
-            q.onTimeout.call(sc, _returnData(q));
0
+            context = q.scope || q;
0
+            q.onTimeout.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Loads the next item for a given request
0
@@ -208,8 +192,11 @@ YAHOO.util.Get = function() {
0
      * @param loaded {string} the url that was just loaded, if any
0
      * @private
0
      */
0
-    var _next = function(id, loaded) {
0
-        var q = queues[id];
0
+    _next = function(id, loaded) {
0
+
0
+
0
+        var q = queues[id], w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], 
0
+            n, msg, url, s, extra;
0
 
0
         if (q.timer) {
0
             // Y.log('cancel timer');
0
@@ -217,7 +204,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
@@ -235,7 +222,6 @@ YAHOO.util.Get = function() {
0
             }
0
         }
0
 
0
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
0
 
0
         if (q.url.length === 0) {
0
             // Safari 2.x workaround - There is no way to know when 
0
@@ -251,7 +237,7 @@ YAHOO.util.Get = function() {
0
                 // arbitrary timeout.  It is possible that the browser does
0
                 // block subsequent script execution in this case for a limited
0
                 // time.
0
-                var extra = _scriptNode(null, q.win, q.attributes);
0
+                extra = _scriptNode(null, q.win, q.attributes);
0
                 extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
0
                 q.nodes.push(extra); h.appendChild(extra);
0
 
0
@@ -263,7 +249,7 @@ YAHOO.util.Get = function() {
0
         } 
0
 
0
 
0
-        var url = q.url[0];
0
+        url = q.url[0];
0
 
0
         // if the url is undefined, this is probably a trailing comma problem in IE
0
         if (!url) {
0
@@ -291,7 +277,7 @@ YAHOO.util.Get = function() {
0
 
0
         // add it to the head or insert it before 'insertBefore'
0
         if (q.insertBefore) {
0
-            var s = _get(q.insertBefore, id);
0
+            s = _get(q.insertBefore, id);
0
             if (s) {
0
                 s.parentNode.insertBefore(n, s);
0
             }
0
@@ -307,69 +293,35 @@ YAHOO.util.Get = function() {
0
         if ((ua.webkit || ua.gecko) && q.type === "css") {
0
             _next(id, url);
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Removes processed queues and corresponding nodes
0
      * @method _autoPurge
0
      * @private
0
      */
0
-    var _autoPurge = function() {
0
+    _autoPurge = function() {
0
 
0
-        if (purging) {
0
+        if (_purging) {
0
             return;
0
         }
0
 
0
-        purging = true;
0
-        for (var i in queues) {
0
-            var q = queues[i];
0
-            if (q.autopurge && q.finished) {
0
-                _purge(q.tId);
0
-                delete queues[i];
0
-            }
0
-        }
0
+        _purging = true;
0
 
0
-        purging = false;
0
-    };
0
+        var i, q;
0
 
0
-    /**
0
-     * Removes the nodes for the specified queue
0
-     * @method _purge
0
-     * @private
0
-     */
0
-    var _purge = function(tId) {
0
-        if (queues[tId]) {
0
-
0
-            var q     = queues[tId],
0
-                nodes = q.nodes, 
0
-                l     = nodes.length, 
0
-                d     = q.win.document, 
0
-                h     = d.getElementsByTagName("head")[0],
0
-                sib, i, node, attr;
0
-
0
-            if (q.insertBefore) {
0
-                sib = _get(q.insertBefore, tId);
0
-                if (sib) {
0
-                    h = sib.parentNode;
0
-                }
0
-            }
0
-
0
-            for (i=0; i<l; i=i+1) {
0
-                node = nodes[i];
0
-                if (node.clearAttributes) {
0
-                    node.clearAttributes();
0
-                } else {
0
-                    for (attr in node) {
0
-                        delete node[attr];
0
-                    }
0
+        for (i in queues) {
0
+            if (queues.hasOwnProperty(i)) {
0
+                q = queues[i];
0
+                if (q.autopurge && q.finished) {
0
+                    _purge(q.tId);
0
+                    delete queues[i];
0
                 }
0
-
0
-                h.removeChild(node);
0
             }
0
-
0
-            q.nodes = [];
0
         }
0
-    };
0
+
0
+        _purging = false;
0
+    },
0
 
0
     /**
0
      * Saves the state for the request and begins loading
0
@@ -380,9 +332,9 @@ YAHOO.util.Get = function() {
0
      * @param opts the hash of options for this request
0
      * @private
0
      */
0
-    var _queue = function(type, url, opts) {
0
+    _queue = function(type, url, opts) {
0
 
0
-        var id = "q" + (qidx++);
0
+        var id = "q" + (qidx++), q;
0
         opts = opts || {};
0
 
0
         if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
0
@@ -398,16 +350,14 @@ YAHOO.util.Get = function() {
0
             nodes: []
0
         });
0
 
0
-        var q = queues[id];
0
+        q = queues[id];
0
         q.win = q.win || window;
0
         q.scope = q.scope || q.win;
0
         q.autopurge = ("autopurge" in q) ? q.autopurge : 
0
                       (type === "script") ? true : false;
0
 
0
-        if (opts.charset) {
0
-            q.attributes = q.attributes || {};
0
-            q.attributes.charset = opts.charset;
0
-        }
0
+        q.attributes = q.attributes || {};
0
+        q.attributes.charset = opts.charset || q.attributes.charset || 'utf-8';
0
 
0
         lang.later(0, q, _next, id);
0
 
0
@@ -432,13 +382,13 @@ YAHOO.util.Get = function() {
0
      * the default is _next
0
      * @private
0
      */
0
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
0
-        var f = trackfn || _next;
0
+    _track = function(type, n, id, url, win, qlength, trackfn) {
0
+        var f = trackfn || _next, rs, q, a, freq, w, l, i, msg;
0
 
0
         // IE supports the readystatechange event for script and css nodes
0
         if (ua.ie) {
0
             n.onreadystatechange = function() {
0
-                var rs = this.readyState;
0
+                rs = this.readyState;
0
                 if ("loaded" === rs || "complete" === rs) {
0
                     n.onreadystatechange = null;
0
                     f(id, url);
0
@@ -468,21 +418,23 @@ YAHOO.util.Get = function() {
0
                 } else {
0
                     // Poll for the existence of the named variable, if it
0
                     // was supplied.
0
-                    var q = queues[id];
0
+                    q = queues[id];
0
                     if (q.varName) {
0
-                        var freq=YAHOO.util.Get.POLL_FREQ;
0
+                        freq = YAHOO.util.Get.POLL_FREQ;
0
                         q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
0
                         q.attempts = 0;
0
                         q._cache = q.varName[0].split(".");
0
                         q.timer = lang.later(freq, q, function(o) {
0
-                            var a=this._cache, l=a.length, w=this.win, i;
0
+                            a = this._cache;
0
+                            l = a.length; 
0
+                            w = this.win;
0
                             for (i=0; i<l; i=i+1) {
0
                                 w = w[a[i]];
0
                                 if (!w) {
0
                                     // if we have exausted our attempts, give up
0
                                     this.attempts++;
0
                                     if (this.attempts++ > this.maxattempts) {
0
-                                        var msg = "Over retry limit, giving up";
0
+                                        msg = "Over retry limit, giving up";
0
                                         q.timer.cancel();
0
                                         _fail(id, msg);
0
                                     } else {
0
@@ -512,6 +464,65 @@ YAHOO.util.Get = function() {
0
         }
0
     };
0
 
0
+    /*
0
+     * The request failed, execute fail handler with whatever
0
+     * was accomplished.  There isn't a failure case at the
0
+     * moment unless you count aborted transactions
0
+     * @method _fail
0
+     * @param id {string} the id of the request
0
+     * @private
0
+     */
0
+    _fail = function(id, msg) {
0
+        var q = queues[id], context;
0
+        // execute failure callback
0
+        if (q.onFailure) {
0
+            context = q.scope || q.win;
0
+            q.onFailure.call(context, _returnData(q, msg));
0
+        }
0
+    };
0
+
0
+    /**
0
+     * Removes the nodes for the specified queue
0
+     * @method _purge
0
+     * @private
0
+     */
0
+    _purge = function(tId) {
0
+        if (queues[tId]) {
0
+
0
+            var q     = queues[tId],
0
+                nodes = q.nodes, 
0
+                l     = nodes.length, 
0
+                d     = q.win.document, 
0
+                h     = d.getElementsByTagName("head")[0],
0
+                sib, i, node, attr;
0
+
0
+            if (q.insertBefore) {
0
+                sib = _get(q.insertBefore, tId);
0
+                if (sib) {
0
+                    h = sib.parentNode;
0
+                }
0
+            }
0
+
0
+            for (i=0; i<l; i=i+1) {
0
+                node = nodes[i];
0
+                if (node.clearAttributes) {
0
+                    node.clearAttributes();
0
+                } else {
0
+                    for (attr in node) {
0
+                        if (node.hasOwnProperty(attr)) {
0
+                            delete node[attr];
0
+                        }
0
+                    }
0
+                }
0
+
0
+                h.removeChild(node);
0
+            }
0
+
0
+            q.nodes = [];
0
+        }
0
+    };
0
+
0
+
0
     return {
0
 
0
         /**
0
@@ -559,8 +570,8 @@ YAHOO.util.Get = function() {
0
          * script() or css()
0
          */
0
         abort: function(o) {
0
-            var id = (lang.isString(o)) ? o : o.tId;
0
-            var q = queues[id];
0
+            var id = (lang.isString(o)) ? o : o.tId,
0
+                q = queues[id];
0
             if (q) {
0
                 q.aborted = true;
0
             }
0
build/yuiloader/yuiloader-debug.js
...
911
912
913
914
 
915
916
917
...
932
933
934
935
 
936
937
938
939
940
941
942
 
943
944
945
...
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
...
1125
1126
1127
1128
 
1129
1130
1131
1132
 
 
 
 
 
1133
1134
1135
...
1140
1141
1142
1143
1144
 
 
1145
1146
1147
 
 
1148
1149
1150
1151
1152
1153
 
1154
1155
1156
...
1160
1161
1162
1163
 
1164
1165
1166
...
1174
1175
1176
1177
 
1178
1179
1180
...
1184
1185
1186
1187
 
1188
1189
1190
...
1196
1197
1198
1199
 
1200
1201
1202
1203
1204
1205
1206
 
1207
1208
1209
...
1214
1215
1216
1217
 
1218
1219
 
1220
1221
1222
...
1224
1225
1226
1227
 
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
...
1249
1250
1251
1252
1253
 
 
1254
1255
1256
1257
 
1258
1259
1260
1261
1262
1263
1264
1265
 
 
1266
1267
 
1268
1269
1270
...
1272
1273
1274
1275
1276
 
 
1277
1278
1279
 
 
1280
1281
 
1282
1283
1284
...
1287
1288
1289
1290
1291
 
 
 
 
 
1292
1293
1294
...
1296
1297
1298
1299
 
1300
1301
1302
...
1314
1315
1316
1317
1318
1319
1320
...
1330
1331
1332
1333
 
1334
1335
1336
...
1342
1343
1344
1345
 
1346
1347
1348
...
1370
1371
1372
1373
 
1374
1375
1376
...
1386
1387
1388
1389
 
1390
1391
1392
1393
1394
1395
1396
 
1397
1398
 
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
 
1413
1414
1415
1416
1417
1418
1419
1420
 
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
 
 
 
 
 
 
1444
1445
1446
1447
1448
1449
1450
1451
 
 
 
1452
1453
1454
...
1459
1460
1461
1462
 
1463
1464
 
1465
1466
1467
...
1477
1478
1479
1480
 
1481
1482
1483
1484
1485
1486
1487
1488
1489
 
 
1490
1491
1492
...
1511
1512
1513
1514
1515
 
 
1516
1517
1518
1519
1520
 
1521
1522
1523
...
1547
1548
1549
1550
 
1551
1552
 
1553
1554
1555
1556
1557
 
 
 
1558
1559
1560
1561
1562
1563
1564
 
1565
1566
1567
...
1591
1592
1593
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1594
1595
1596
...
1638
1639
1640
1641
1642
 
 
1643
1644
1645
...
911
912
913
 
914
915
916
917
...
932
933
934
 
935
936
937
938
939
940
941
 
942
943
944
945
...
1114
1115
1116
 
 
 
 
1117
1118
1119
...
1121
1122
1123
 
1124
1125
1126
1127
 
1128
1129
1130
1131
1132
1133
1134
1135
...
1140
1141
1142
 
 
1143
1144
1145
 
 
1146
1147
1148
1149
1150
1151
1152
 
1153
1154
1155
1156
...
1160
1161
1162
 
1163
1164
1165
1166
...
1174
1175
1176
 
1177
1178
1179
1180
...
1184
1185
1186
 
1187
1188
1189
1190
...
1196
1197
1198
 
1199
1200
1201
1202
1203
1204
1205
 
1206
1207
1208
1209
...
1214
1215
1216
 
1217
1218
 
1219
1220
1221
1222
...
1224
1225
1226
 
1227
1228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1229
1230
1231
...
1233
1234
1235
 
 
1236
1237
1238
1239
1240
 
1241
1242
1243
1244
1245
1246
1247
 
 
1248
1249
1250
 
1251
1252
1253
1254
...
1256
1257
1258
 
 
1259
1260
1261
 
 
1262
1263
1264
 
1265
1266
1267
1268
...
1271
1272
1273
 
 
1274
1275
1276
1277
1278
1279
1280
1281
...
1283
1284
1285
 
1286
1287
1288
1289
...
1301
1302
1303
 
1304
1305
1306
...
1316
1317
1318
 
1319
1320
1321
1322
...
1328
1329
1330
 
1331
1332
1333
1334
...
1356
1357
1358
 
1359
1360
1361
1362
...
1372
1373
1374
 
1375
1376
1377
1378
1379
1380
1381
 
1382
1383
 
1384
1385
1386
1387
 
 
 
 
 
 
 
 
 
 
 
1388
1389
 
 
 
 
 
 
 
1390
1391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1392
1393
1394
1395
1396
1397
1398
 
 
1399
 
 
1400
 
1401
1402
1403
1404
1405
1406
...
1411
1412
1413
 
1414
1415
 
1416
1417
1418
1419
...
1429
1430
1431
 
1432
1433
1434
1435
1436
1437
 
 
 
 
1438
1439
1440
1441
1442
...
1461
1462
1463
 
 
1464
1465
1466
1467
1468
1469
 
1470
1471
1472
1473
...
1497
1498
1499
 
1500
1501
 
1502
1503
1504
1505
1506
 
1507
1508
1509
1510
1511
1512
1513
1514
1515
 
1516
1517
1518
1519
...
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
...
1649
1650
1651
 
 
1652
1653
1654
1655
1656
0
@@ -911,7 +911,7 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
0
      * @method merge
0
      * @since 2.3.0
0
      * @param arguments {Object*} the objects to merge
0
-     * @return the new merged object
0
+     * @return {object} the new merged object
0
      */
0
     merge: function() {
0
         var o={}, a=arguments, l=a.length, i;
0
@@ -932,14 +932,14 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
0
      * @param o the context object
0
      * @param fn {Function|String} the function to execute or the name of 
0
      * the method in the 'o' object to execute
0
-     * @param data [Array] data that is provided to the function.  This accepts
0
+     * @param data {Array} data that is provided to the function.  This accepts
0
      * either a single item or an array.  If an array is provided, the
0
      * function is executed with one parameter for each array item.  If
0
      * you need to pass a single array parameter, it needs to be wrapped in
0
      * an array [myarray]
0
      * @param periodic {boolean} if true, executes continuously at supplied 
0
      * interval until canceled
0
-     * @return a timer object. Call the cancel() method on this object to 
0
+     * @return {object} a timer object. Call the cancel() method on this object to 
0
      * stop the timer.
0
      */
0
     later: function(when, o, fn, data, periodic) {
0
@@ -1114,10 +1114,6 @@ YAHOO.util.Get = function() {
0
      */
0
         nidx=0, 
0
 
0
-        // ridx=0,
0
-
0
-        // sandboxFrame=null,
0
-
0
     /**
0
      * interal property used to prevent multiple simultaneous purge 
0
      * processes
0
@@ -1125,11 +1121,15 @@ YAHOO.util.Get = function() {
0
      * @type boolean
0
      * @private
0
      */
0
-        purging=false,
0
+        _purging=false,
0
 
0
         ua=YAHOO.env.ua, 
0
         
0
-        lang=YAHOO.lang;
0
+        lang=YAHOO.lang,
0
+    
0
+    _fail, 
0
+    _purge, 
0
+    _track,
0
     
0
     /** 
0
      * Generates an HTML element, this is not appended to a document
0
@@ -1140,17 +1140,17 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _node = function(type, attr, win) {
0
-        var w = win || window, d=w.document, n=d.createElement(type);
0
+    _node = function(type, attr, win) {
0
+        var w = win || window, d=w.document, n=d.createElement(type), i;
0
 
0
-        for (var i in attr) {
0
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
0
+        for (i in attr) {
0
+            if (attr.hasOwnProperty(i)) {
0
                 n.setAttribute(i, attr[i]);
0
             }
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a link node
0
@@ -1160,7 +1160,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _linkNode = function(url, win, attributes) {
0
+    _linkNode = function(url, win, attributes) {
0
 
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
@@ -1174,7 +1174,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("link", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a script node
0
@@ -1184,7 +1184,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _scriptNode = function(url, win, attributes) {
0
+    _scriptNode = function(url, win, attributes) {
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
             type: "text/javascript",
0
@@ -1196,14 +1196,14 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("script", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Returns the data payload for callback functions
0
      * @method _returnData
0
      * @private
0
      */
0
-    var _returnData = function(q, msg) {
0
+    _returnData = function(q, msg) {
0
         return {
0
                 tId: q.tId,
0
                 win: q.win,
0
@@ -1214,9 +1214,9 @@ YAHOO.util.Get = function() {
0
                     _purge(this.tId);
0
                 }
0
             };
0
-    };
0
+    },
0
 
0
-    var _get = function(nId, tId) {
0
+    _get = function(nId, tId) {
0
         var q = queues[tId],
0
             n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
0
         if (!n) {
0
@@ -1224,24 +1224,8 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
-    /*
0
-     * The request failed, execute fail handler with whatever
0
-     * was accomplished.  There isn't a failure case at the
0
-     * moment unless you count aborted transactions
0
-     * @method _fail
0
-     * @param id {string} the id of the request
0
-     * @private
0
-     */
0
-    var _fail = function(id, msg) {
0
-        var q = queues[id];
0
-        // execute failure callback
0
-        if (q.onFailure) {
0
-            var sc=q.scope || q.win;
0
-            q.onFailure.call(sc, _returnData(q, msg));
0
-        }
0
-    };
0
 
0
     /**
0
      * The request is complete, so executing the requester's callback
0
@@ -1249,22 +1233,22 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _finish = function(id) {
0
-        var q = queues[id];
0
+    _finish = function(id) {
0
+        var q = queues[id], msg, context;
0
         q.finished = true;
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
 
0
         // execute success callback
0
         if (q.onSuccess) {
0
-            var sc=q.scope || q.win;
0
-            q.onSuccess.call(sc, _returnData(q));
0
+            context = q.scope || q.win;
0
+            q.onSuccess.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Timeout detected
0
@@ -1272,13 +1256,13 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _timeout = function(id) {
0
-        var q = queues[id];
0
+    _timeout = function(id) {
0
+        var q = queues[id], context;
0
         if (q.onTimeout) {
0
-            var sc=q.scope || q;
0
-            q.onTimeout.call(sc, _returnData(q));
0
+            context = q.scope || q;
0
+            q.onTimeout.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Loads the next item for a given request
0
@@ -1287,8 +1271,11 @@ YAHOO.util.Get = function() {
0
      * @param loaded {string} the url that was just loaded, if any
0
      * @private
0
      */
0
-    var _next = function(id, loaded) {
0
-        var q = queues[id];
0
+    _next = function(id, loaded) {
0
+
0
+
0
+        var q = queues[id], w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], 
0
+            n, msg, url, s, extra;
0
 
0
         if (q.timer) {
0
             // Y.log('cancel timer');
0
@@ -1296,7 +1283,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
@@ -1314,7 +1301,6 @@ YAHOO.util.Get = function() {
0
             }
0
         }
0
 
0
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
0
 
0
         if (q.url.length === 0) {
0
             // Safari 2.x workaround - There is no way to know when 
0
@@ -1330,7 +1316,7 @@ YAHOO.util.Get = function() {
0
                 // arbitrary timeout.  It is possible that the browser does
0
                 // block subsequent script execution in this case for a limited
0
                 // time.
0
-                var extra = _scriptNode(null, q.win, q.attributes);
0
+                extra = _scriptNode(null, q.win, q.attributes);
0
                 extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
0
                 q.nodes.push(extra); h.appendChild(extra);
0
 
0
@@ -1342,7 +1328,7 @@ YAHOO.util.Get = function() {
0
         } 
0
 
0
 
0
-        var url = q.url[0];
0
+        url = q.url[0];
0
 
0
         // if the url is undefined, this is probably a trailing comma problem in IE
0
         if (!url) {
0
@@ -1370,7 +1356,7 @@ YAHOO.util.Get = function() {
0
 
0
         // add it to the head or insert it before 'insertBefore'
0
         if (q.insertBefore) {
0
-            var s = _get(q.insertBefore, id);
0
+            s = _get(q.insertBefore, id);
0
             if (s) {
0
                 s.parentNode.insertBefore(n, s);
0
             }
0
@@ -1386,69 +1372,35 @@ YAHOO.util.Get = function() {
0
         if ((ua.webkit || ua.gecko) && q.type === "css") {
0
             _next(id, url);
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Removes processed queues and corresponding nodes
0
      * @method _autoPurge
0
      * @private
0
      */
0
-    var _autoPurge = function() {
0
+    _autoPurge = function() {
0
 
0
-        if (purging) {
0
+        if (_purging) {
0
             return;
0
         }
0
 
0
-        purging = true;
0
-        for (var i in queues) {
0
-            var q = queues[i];
0
-            if (q.autopurge && q.finished) {
0
-                _purge(q.tId);
0
-                delete queues[i];
0
-            }
0
-        }
0
-
0
-        purging = false;
0
-    };
0
+        _purging = true;
0
 
0
-    /**
0
-     * Removes the nodes for the specified queue
0
-     * @method _purge
0
-     * @private
0
-     */
0
-    var _purge = function(tId) {
0
-        if (queues[tId]) {
0
+        var i, q;
0
 
0
-            var q     = queues[tId],
0
-                nodes = q.nodes, 
0
-                l     = nodes.length, 
0
-                d     = q.win.document, 
0
-                h     = d.getElementsByTagName("head")[0],
0
-                sib, i, node, attr;
0
-
0
-            if (q.insertBefore) {
0
-                sib = _get(q.insertBefore, tId);
0
-                if (sib) {
0
-                    h = sib.parentNode;
0
-                }
0
-            }
0
-
0
-            for (i=0; i<l; i=i+1) {
0
-                node = nodes[i];
0
-                if (node.clearAttributes) {
0
-                    node.clearAttributes();
0
-                } else {
0
-                    for (attr in node) {
0
-                        delete node[attr];
0
-                    }
0
+        for (i in queues) {
0
+            if (queues.hasOwnProperty(i)) {
0
+                q = queues[i];
0
+                if (q.autopurge && q.finished) {
0
+                    _purge(q.tId);
0
+                    delete queues[i];
0
                 }
0
-
0
-                h.removeChild(node);
0
             }
0
-
0
-            q.nodes = [];
0
         }
0
-    };
0
+
0
+        _purging = false;
0
+    },
0
 
0
     /**
0
      * Saves the state for the request and begins loading
0
@@ -1459,9 +1411,9 @@ YAHOO.util.Get = function() {
0
      * @param opts the hash of options for this request
0
      * @private
0
      */
0
-    var _queue = function(type, url, opts) {
0
+    _queue = function(type, url, opts) {
0
 
0
-        var id = "q" + (qidx++);
0
+        var id = "q" + (qidx++), q;
0
         opts = opts || {};
0
 
0
         if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
0
@@ -1477,16 +1429,14 @@ YAHOO.util.Get = function() {
0
             nodes: []
0
         });
0
 
0
-        var q = queues[id];
0
+        q = queues[id];
0
         q.win = q.win || window;
0
         q.scope = q.scope || q.win;
0
         q.autopurge = ("autopurge" in q) ? q.autopurge : 
0
                       (type === "script") ? true : false;
0
 
0
-        if (opts.charset) {
0
-            q.attributes = q.attributes || {};
0
-            q.attributes.charset = opts.charset;
0
-        }
0
+        q.attributes = q.attributes || {};
0
+        q.attributes.charset = opts.charset || q.attributes.charset || 'utf-8';
0
 
0
         lang.later(0, q, _next, id);
0
 
0
@@ -1511,13 +1461,13 @@ YAHOO.util.Get = function() {
0
      * the default is _next
0
      * @private
0
      */
0
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
0
-        var f = trackfn || _next;
0
+    _track = function(type, n, id, url, win, qlength, trackfn) {
0
+        var f = trackfn || _next, rs, q, a, freq, w, l, i, msg;
0
 
0
         // IE supports the readystatechange event for script and css nodes
0
         if (ua.ie) {
0
             n.onreadystatechange = function() {
0
-                var rs = this.readyState;
0
+                rs = this.readyState;
0
                 if ("loaded" === rs || "complete" === rs) {
0
                     n.onreadystatechange = null;
0
                     f(id, url);
0
@@ -1547,21 +1497,23 @@ YAHOO.util.Get = function() {
0
                 } else {
0
                     // Poll for the existence of the named variable, if it
0
                     // was supplied.
0
-                    var q = queues[id];
0
+                    q = queues[id];
0
                     if (q.varName) {
0
-                        var freq=YAHOO.util.Get.POLL_FREQ;
0
+                        freq = YAHOO.util.Get.POLL_FREQ;
0
                         q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
0
                         q.attempts = 0;
0
                         q._cache = q.varName[0].split(".");
0
                         q.timer = lang.later(freq, q, function(o) {
0
-                            var a=this._cache, l=a.length, w=this.win, i;
0
+                            a = this._cache;
0
+                            l = a.length; 
0
+                            w = this.win;
0
                             for (i=0; i<l; i=i+1) {
0
                                 w = w[a[i]];
0
                                 if (!w) {
0
                                     // if we have exausted our attempts, give up
0
                                     this.attempts++;
0
                                     if (this.attempts++ > this.maxattempts) {
0
-                                        var msg = "Over retry limit, giving up";
0
+                                        msg = "Over retry limit, giving up";
0
                                         q.timer.cancel();
0
                                         _fail(id, msg);
0
                                     } else {
0
@@ -1591,6 +1543,65 @@ YAHOO.util.Get = function() {
0
         }
0
     };
0
 
0
+    /*
0
+     * The request failed, execute fail handler with whatever
0
+     * was accomplished.  There isn't a failure case at the
0
+     * moment unless you count aborted transactions
0
+     * @method _fail
0
+     * @param id {string} the id of the request
0
+     * @private
0
+     */
0
+    _fail = function(id, msg) {
0
+        var q = queues[id], context;
0
+        // execute failure callback
0
+        if (q.onFailure) {
0
+            context = q.scope || q.win;
0
+            q.onFailure.call(context, _returnData(q, msg));
0
+        }
0
+    };
0
+
0
+    /**
0
+     * Removes the nodes for the specified queue
0
+     * @method _purge
0
+     * @private
0
+     */
0
+    _purge = function(tId) {
0
+        if (queues[tId]) {
0
+
0
+            var q     = queues[tId],
0
+                nodes = q.nodes, 
0
+                l     = nodes.length, 
0
+                d     = q.win.document, 
0
+                h     = d.getElementsByTagName("head")[0],
0
+                sib, i, node, attr;
0
+
0
+            if (q.insertBefore) {
0
+                sib = _get(q.insertBefore, tId);
0
+                if (sib) {
0
+                    h = sib.parentNode;
0
+                }
0
+            }
0
+
0
+            for (i=0; i<l; i=i+1) {
0
+                node = nodes[i];
0
+                if (node.clearAttributes) {
0
+                    node.clearAttributes();
0
+                } else {
0
+                    for (attr in node) {
0
+                        if (node.hasOwnProperty(attr)) {
0
+                            delete node[attr];
0
+                        }
0
+                    }
0
+                }
0
+
0
+                h.removeChild(node);
0
+            }
0
+
0
+            q.nodes = [];
0
+        }
0
+    };
0
+
0
+
0
     return {
0
 
0
         /**
0
@@ -1638,8 +1649,8 @@ YAHOO.util.Get = function() {
0
          * script() or css()
0
          */
0
         abort: function(o) {
0
-            var id = (lang.isString(o)) ? o : o.tId;
0
-            var q = queues[id];
0
+            var id = (lang.isString(o)) ? o : o.tId,
0
+                q = queues[id];
0
             if (q) {
0
                 q.aborted = true;
0
             }
0
build/yuiloader/yuiloader-min.js
...
1
2
 
3
4
...
1
 
2
3
4
0
@@ -1,4 +1,4 @@
0
 if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(R,S,Y,I){var X,W,V,a,O,P,Z=[],L,T=R.length,U="dump",N=" ",M="{",J="}",K,Q;for(;;){X=R.lastIndexOf(M,T);if(X<0){break;}W=R.indexOf(J,X);if(X+1>=W){break;}L=R.substring(X+1,W);a=L;P=null;V=a.indexOf(N);if(V>-1){P=a.substring(V+1);a=a.substring(0,V);}O=S[a];if(Y){O=Y(a,O,P);}if(B.isObject(O)){if(B.isArray(O)){O=B.dump(O,parseInt(P,10));}else{P=P||"";K=P.indexOf(U);if(K>-1){P=P.substring(4);}Q=O.toString();if(Q===G||K>-1){O=B.dump(O,parseInt(P,10));}else{O=Q;}}}else{if(!B.isString(O)&&!B.isNumber(O)){O="~-"+Z.length+"-~";Z[Z.length]=L;}}R=R.substring(0,X)+O+R.substring(W+1);if(!I){T=X-1;}}for(X=Z.length-1;X>=0;X=X-1){R=R.replace(new RegExp("~-"+X+"-~"),"{"+Z[X]+"}","g");}return R;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"@VERSION@",build:"@BUILD@"});
0
-YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"@VERSION@",build:"@BUILD@"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"@VERSION@/build/","base":"http://yui.yahooapis.com/@VERSION@/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemath"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
0
+YAHOO.util.Get=function(){var M={},K=0,R=0,L=false,N=YAHOO.env.ua,S=YAHOO.lang,Q,D,E,I=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W),V;for(V in T){if(T.hasOwnProperty(V)){Z.setAttribute(V,T[V]);}}return Z;},H=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return I("link",W,V);},P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return I("script",W,V);},A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};},B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;},C=function(W){var U=M[W],V,T;U.finished=true;if(U.aborted){V="transaction "+W+" was aborted";Q(W,V);return;}if(U.onSuccess){T=U.scope||U.win;U.onSuccess.call(T,A(U));}},O=function(V){var U=M[V],T;if(U.onTimeout){T=U.scope||U;U.onTimeout.call(T,A(U));}},F=function(V,Z){var U=M[V],c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W,X,T,e,Y;if(U.timer){U.timer.cancel();}if(U.aborted){X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}T=U.url[0];if(!T){U.url.shift();return F(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=H(T,c,U.attributes);}E(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){F(V,T);}},J=function(){if(L){return;}L=true;var T,U;for(T in M){if(M.hasOwnProperty(T)){U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}}L=false;},G=function(U,T,V){var X="q"+(K++),W;V=V||{};if(K%YAHOO.util.Get.PURGE_THRESH===0){J();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;W.attributes=W.attributes||{};W.attributes.charset=V.charset||W.attributes.charset||"utf-8";S.later(0,W,F,X);return{tId:X};};E=function(j,Y,W,U,d,e,h){var g=h||F,b,T,k,V,m,Z,c,X;if(N.ie){Y.onreadystatechange=function(){b=this.readyState;if("loaded"===b||"complete"===b){Y.onreadystatechange=null;g(W,U);}};}else{if(N.webkit){if(j==="script"){if(N.webkit>=420){Y.addEventListener("load",function(){g(W,U);});}else{T=M[W];if(T.varName){V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(a){k=this._cache;Z=k.length;m=this.win;for(c=0;c<Z;c=c+1){m=m[k[c]];if(!m){this.attempts++;if(this.attempts++>this.maxattempts){X="Over retry limit, giving up";T.timer.cancel();Q(W,X);}else{}return;}}T.timer.cancel();g(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,g,[W,U]);}}}}else{Y.onload=function(){g(W,U);};}}};Q=function(W,V){var U=M[W],T;if(U.onFailure){T=U.scope||U.win;U.onFailure.call(T,A(U,V));}};D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){if(W.hasOwnProperty(b)){delete W[b];}}}a.removeChild(W);}T.nodes=[];}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId,T=M[V];if(T){T.aborted=true;}},script:function(T,U){return G("script",T,U);},css:function(T,U){return G("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"@VERSION@",build:"@BUILD@"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"@VERSION@/build/","base":"http://yui.yahooapis.com/@VERSION@/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemath"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
0
 i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}m.requires.push(smod);}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});
0
 }},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};this.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js");},scope:this},"js");return;}this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort();}return;}if(m.type!=="js"){this._loadCount++;continue;}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data});}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data});}else{this._onFailure.call(this.varName+" reference failure");}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data});},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data);};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str;},_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"@VERSION@",build:"@BUILD@"});
0
build/yuiloader/yuiloader.js
...
911
912
913
914
 
915
916
917
...
932
933
934
935
 
936
937
938
939
940
941
942
 
943
944
945
...
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
...
1125
1126
1127
1128
 
1129
1130
1131
1132
 
 
 
 
 
1133
1134
1135
...
1140
1141
1142
1143
1144
 
 
1145
1146
1147
 
 
1148
1149
1150
1151
1152
1153
 
1154
1155
1156
...
1160
1161
1162
1163
 
1164
1165
1166
...
1174
1175
1176
1177
 
1178
1179
1180
...
1184
1185
1186
1187
 
1188
1189
1190
...
1196
1197
1198
1199
 
1200
1201
1202
1203
1204
1205
1206
 
1207
1208
1209
...
1214
1215
1216
1217
 
1218
1219
 
1220
1221
1222
...
1224
1225
1226
1227
 
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
...
1249
1250
1251
1252
1253
 
 
1254
1255
1256
1257
 
1258
1259
1260
1261
1262
1263
1264
1265
 
 
1266
1267
 
1268
1269
1270
...
1272
1273
1274
1275
1276
 
 
1277
1278
1279
 
 
1280
1281
 
1282
1283
1284
...
1287
1288
1289
1290
1291
 
 
 
 
 
1292
1293
1294
...
1296
1297
1298
1299
 
1300
1301
1302
...
1314
1315
1316
1317
1318
1319
1320
...
1330
1331
1332
1333
 
1334
1335
1336
...
1342
1343
1344
1345
 
1346
1347
1348
...
1370
1371
1372
1373
 
1374
1375
1376
...
1386
1387
1388
1389
 
1390
1391
1392
1393
1394
1395
1396
 
1397
1398
 
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
 
1413
1414
1415
1416
1417
1418
1419
1420
 
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
 
 
 
 
 
 
1444
1445
1446
1447
1448
1449
1450
1451
 
 
 
1452
1453
1454
...
1459
1460
1461
1462
 
1463
1464
 
1465
1466
1467
...
1477
1478
1479
1480
 
1481
1482
1483
1484
1485
1486
1487
1488
1489
 
 
1490
1491
1492
...
1511
1512
1513
1514
1515
 
 
1516
1517
1518
1519
1520
 
1521
1522
1523
...
1547
1548
1549
1550
 
1551
1552
 
1553
1554
1555
1556
1557
 
 
 
1558
1559
1560
1561
1562
1563
1564
 
1565
1566
1567
...
1591
1592
1593
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1594
1595
1596
...
1638
1639
1640
1641
1642
 
 
1643
1644
1645
...
911
912
913
 
914
915
916
917
...
932
933
934
 
935
936
937
938
939
940
941
 
942
943
944
945
...
1114
1115
1116
 
 
 
 
1117
1118
1119
...
1121
1122
1123
 
1124
1125
1126
1127
 
1128
1129
1130
1131
1132
1133
1134
1135
...
1140
1141
1142
 
 
1143
1144
1145
 
 
1146
1147
1148
1149
1150
1151
1152
 
1153
1154
1155
1156
...
1160
1161
1162
 
1163
1164
1165
1166
...
1174
1175
1176
 
1177
1178
1179
1180
...
1184
1185
1186
 
1187
1188
1189
1190
...
1196
1197
1198
 
1199
1200
1201
1202
1203
1204
1205
 
1206
1207
1208
1209
...
1214
1215
1216
 
1217
1218
 
1219
1220
1221
1222
...
1224
1225
1226
 
1227
1228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1229
1230
1231
...
1233
1234
1235
 
 
1236
1237
1238
1239
1240
 
1241
1242
1243
1244
1245
1246
1247
 
 
1248
1249
1250
 
1251
1252
1253
1254
...
1256
1257
1258
 
 
1259
1260
1261
 
 
1262
1263
1264
 
1265
1266
1267
1268
...
1271
1272
1273
 
 
1274
1275
1276
1277
1278
1279
1280
1281
...
1283
1284
1285
 
1286
1287
1288
1289
...
1301
1302
1303
 
1304
1305
1306
...
1316
1317
1318
 
1319
1320
1321
1322
...
1328
1329
1330
 
1331
1332
1333
1334
...
1356
1357
1358
 
1359
1360
1361
1362
...
1372
1373
1374
 
1375
1376
1377
1378
1379
1380
1381
 
1382
1383
 
1384
1385
1386
1387
 
 
 
 
 
 
 
 
 
 
 
1388
1389
 
 
 
 
 
 
 
1390
1391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1392
1393
1394
1395
1396
1397
1398
 
 
1399
 
 
1400
 
1401
1402
1403
1404
1405
1406
...
1411
1412
1413
 
1414
1415
 
1416
1417
1418
1419
...
1429
1430
1431
 
1432
1433
1434
1435
1436
1437
 
 
 
 
1438
1439
1440
1441
1442
...
1461
1462
1463
 
 
1464
1465
1466
1467
1468
1469
 
1470
1471
1472
1473
...
1497
1498
1499
 
1500
1501
 
1502
1503
1504
1505
1506
 
1507
1508
1509
1510
1511
1512
1513
1514
1515
 
1516
1517
1518
1519
...
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
...
1649
1650
1651
 
 
1652
1653
1654
1655
1656
0
@@ -911,7 +911,7 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
0
      * @method merge
0
      * @since 2.3.0
0
      * @param arguments {Object*} the objects to merge
0
-     * @return the new merged object
0
+     * @return {object} the new merged object
0
      */
0
     merge: function() {
0
         var o={}, a=arguments, l=a.length, i;
0
@@ -932,14 +932,14 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
0
      * @param o the context object
0
      * @param fn {Function|String} the function to execute or the name of 
0
      * the method in the 'o' object to execute
0
-     * @param data [Array] data that is provided to the function.  This accepts
0
+     * @param data {Array} data that is provided to the function.  This accepts
0
      * either a single item or an array.  If an array is provided, the
0
      * function is executed with one parameter for each array item.  If
0
      * you need to pass a single array parameter, it needs to be wrapped in
0
      * an array [myarray]
0
      * @param periodic {boolean} if true, executes continuously at supplied 
0
      * interval until canceled
0
-     * @return a timer object. Call the cancel() method on this object to 
0
+     * @return {object} a timer object. Call the cancel() method on this object to 
0
      * stop the timer.
0
      */
0
     later: function(when, o, fn, data, periodic) {
0
@@ -1114,10 +1114,6 @@ YAHOO.util.Get = function() {
0
      */
0
         nidx=0, 
0
 
0
-        // ridx=0,
0
-
0
-        // sandboxFrame=null,
0
-
0
     /**
0
      * interal property used to prevent multiple simultaneous purge 
0
      * processes
0
@@ -1125,11 +1121,15 @@ YAHOO.util.Get = function() {
0
      * @type boolean
0
      * @private
0
      */
0
-        purging=false,
0
+        _purging=false,
0
 
0
         ua=YAHOO.env.ua, 
0
         
0
-        lang=YAHOO.lang;
0
+        lang=YAHOO.lang,
0
+    
0
+    _fail, 
0
+    _purge, 
0
+    _track,
0
     
0
     /** 
0
      * Generates an HTML element, this is not appended to a document
0
@@ -1140,17 +1140,17 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _node = function(type, attr, win) {
0
-        var w = win || window, d=w.document, n=d.createElement(type);
0
+    _node = function(type, attr, win) {
0
+        var w = win || window, d=w.document, n=d.createElement(type), i;
0
 
0
-        for (var i in attr) {
0
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
0
+        for (i in attr) {
0
+            if (attr.hasOwnProperty(i)) {
0
                 n.setAttribute(i, attr[i]);
0
             }
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a link node
0
@@ -1160,7 +1160,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _linkNode = function(url, win, attributes) {
0
+    _linkNode = function(url, win, attributes) {
0
 
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
@@ -1174,7 +1174,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("link", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a script node
0
@@ -1184,7 +1184,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _scriptNode = function(url, win, attributes) {
0
+    _scriptNode = function(url, win, attributes) {
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
             type: "text/javascript",
0
@@ -1196,14 +1196,14 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("script", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Returns the data payload for callback functions
0
      * @method _returnData
0
      * @private
0
      */
0
-    var _returnData = function(q, msg) {
0
+    _returnData = function(q, msg) {
0
         return {
0
                 tId: q.tId,
0
                 win: q.win,
0
@@ -1214,9 +1214,9 @@ YAHOO.util.Get = function() {
0
                     _purge(this.tId);
0
                 }
0
             };
0
-    };
0
+    },
0
 
0
-    var _get = function(nId, tId) {
0
+    _get = function(nId, tId) {
0
         var q = queues[tId],
0
             n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
0
         if (!n) {
0
@@ -1224,24 +1224,8 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
-    /*
0
-     * The request failed, execute fail handler with whatever
0
-     * was accomplished.  There isn't a failure case at the
0
-     * moment unless you count aborted transactions
0
-     * @method _fail
0
-     * @param id {string} the id of the request
0
-     * @private
0
-     */
0
-    var _fail = function(id, msg) {
0
-        var q = queues[id];
0
-        // execute failure callback
0
-        if (q.onFailure) {
0
-            var sc=q.scope || q.win;
0
-            q.onFailure.call(sc, _returnData(q, msg));
0
-        }
0
-    };
0
 
0
     /**
0
      * The request is complete, so executing the requester's callback
0
@@ -1249,22 +1233,22 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _finish = function(id) {
0
-        var q = queues[id];
0
+    _finish = function(id) {
0
+        var q = queues[id], msg, context;
0
         q.finished = true;
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
 
0
         // execute success callback
0
         if (q.onSuccess) {
0
-            var sc=q.scope || q.win;
0
-            q.onSuccess.call(sc, _returnData(q));
0
+            context = q.scope || q.win;
0
+            q.onSuccess.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Timeout detected
0
@@ -1272,13 +1256,13 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _timeout = function(id) {
0
-        var q = queues[id];
0
+    _timeout = function(id) {
0
+        var q = queues[id], context;
0
         if (q.onTimeout) {
0
-            var sc=q.scope || q;
0
-            q.onTimeout.call(sc, _returnData(q));
0
+            context = q.scope || q;
0
+            q.onTimeout.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Loads the next item for a given request
0
@@ -1287,8 +1271,11 @@ YAHOO.util.Get = function() {
0
      * @param loaded {string} the url that was just loaded, if any
0
      * @private
0
      */
0
-    var _next = function(id, loaded) {
0
-        var q = queues[id];
0
+    _next = function(id, loaded) {
0
+
0
+
0
+        var q = queues[id], w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], 
0
+            n, msg, url, s, extra;
0
 
0
         if (q.timer) {
0
             // Y.log('cancel timer');
0
@@ -1296,7 +1283,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
@@ -1314,7 +1301,6 @@ YAHOO.util.Get = function() {
0
             }
0
         }
0
 
0
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
0
 
0
         if (q.url.length === 0) {
0
             // Safari 2.x workaround - There is no way to know when 
0
@@ -1330,7 +1316,7 @@ YAHOO.util.Get = function() {
0
                 // arbitrary timeout.  It is possible that the browser does
0
                 // block subsequent script execution in this case for a limited
0
                 // time.
0
-                var extra = _scriptNode(null, q.win, q.attributes);
0
+                extra = _scriptNode(null, q.win, q.attributes);
0
                 extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
0
                 q.nodes.push(extra); h.appendChild(extra);
0
 
0
@@ -1342,7 +1328,7 @@ YAHOO.util.Get = function() {
0
         } 
0
 
0
 
0
-        var url = q.url[0];
0
+        url = q.url[0];
0
 
0
         // if the url is undefined, this is probably a trailing comma problem in IE
0
         if (!url) {
0
@@ -1370,7 +1356,7 @@ YAHOO.util.Get = function() {
0
 
0
         // add it to the head or insert it before 'insertBefore'
0
         if (q.insertBefore) {
0
-            var s = _get(q.insertBefore, id);
0
+            s = _get(q.insertBefore, id);
0
             if (s) {
0
                 s.parentNode.insertBefore(n, s);
0
             }
0
@@ -1386,69 +1372,35 @@ YAHOO.util.Get = function() {
0
         if ((ua.webkit || ua.gecko) && q.type === "css") {
0
             _next(id, url);
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Removes processed queues and corresponding nodes
0
      * @method _autoPurge
0
      * @private
0
      */
0
-    var _autoPurge = function() {
0
+    _autoPurge = function() {
0
 
0
-        if (purging) {
0
+        if (_purging) {
0
             return;
0
         }
0
 
0
-        purging = true;
0
-        for (var i in queues) {
0
-            var q = queues[i];
0
-            if (q.autopurge && q.finished) {
0
-                _purge(q.tId);
0
-                delete queues[i];
0
-            }
0
-        }
0
-
0
-        purging = false;
0
-    };
0
+        _purging = true;
0
 
0
-    /**
0
-     * Removes the nodes for the specified queue
0
-     * @method _purge
0
-     * @private
0
-     */
0
-    var _purge = function(tId) {
0
-        if (queues[tId]) {
0
+        var i, q;
0
 
0
-            var q     = queues[tId],
0
-                nodes = q.nodes, 
0
-                l     = nodes.length, 
0
-                d     = q.win.document, 
0
-                h     = d.getElementsByTagName("head")[0],
0
-                sib, i, node, attr;
0
-
0
-            if (q.insertBefore) {
0
-                sib = _get(q.insertBefore, tId);
0
-                if (sib) {
0
-                    h = sib.parentNode;
0
-                }
0
-            }
0
-
0
-            for (i=0; i<l; i=i+1) {
0
-                node = nodes[i];
0
-                if (node.clearAttributes) {
0
-                    node.clearAttributes();
0
-                } else {
0
-                    for (attr in node) {
0
-                        delete node[attr];
0
-                    }
0
+        for (i in queues) {
0
+            if (queues.hasOwnProperty(i)) {
0
+                q = queues[i];
0
+                if (q.autopurge && q.finished) {
0
+                    _purge(q.tId);
0
+                    delete queues[i];
0
                 }
0
-
0
-                h.removeChild(node);
0
             }
0
-
0
-            q.nodes = [];
0
         }
0
-    };
0
+
0
+        _purging = false;
0
+    },
0
 
0
     /**
0
      * Saves the state for the request and begins loading
0
@@ -1459,9 +1411,9 @@ YAHOO.util.Get = function() {
0
      * @param opts the hash of options for this request
0
      * @private
0
      */
0
-    var _queue = function(type, url, opts) {
0
+    _queue = function(type, url, opts) {
0
 
0
-        var id = "q" + (qidx++);
0
+        var id = "q" + (qidx++), q;
0
         opts = opts || {};
0
 
0
         if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
0
@@ -1477,16 +1429,14 @@ YAHOO.util.Get = function() {
0
             nodes: []
0
         });
0
 
0
-        var q = queues[id];
0
+        q = queues[id];
0
         q.win = q.win || window;
0
         q.scope = q.scope || q.win;
0
         q.autopurge = ("autopurge" in q) ? q.autopurge : 
0
                       (type === "script") ? true : false;
0
 
0
-        if (opts.charset) {
0
-            q.attributes = q.attributes || {};
0
-            q.attributes.charset = opts.charset;
0
-        }
0
+        q.attributes = q.attributes || {};
0
+        q.attributes.charset = opts.charset || q.attributes.charset || 'utf-8';
0
 
0
         lang.later(0, q, _next, id);
0
 
0
@@ -1511,13 +1461,13 @@ YAHOO.util.Get = function() {
0
      * the default is _next
0
      * @private
0
      */
0
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
0
-        var f = trackfn || _next;
0
+    _track = function(type, n, id, url, win, qlength, trackfn) {
0
+        var f = trackfn || _next, rs, q, a, freq, w, l, i, msg;
0
 
0
         // IE supports the readystatechange event for script and css nodes
0
         if (ua.ie) {
0
             n.onreadystatechange = function() {
0
-                var rs = this.readyState;
0
+                rs = this.readyState;
0
                 if ("loaded" === rs || "complete" === rs) {
0
                     n.onreadystatechange = null;
0
                     f(id, url);
0
@@ -1547,21 +1497,23 @@ YAHOO.util.Get = function() {
0
                 } else {
0
                     // Poll for the existence of the named variable, if it
0
                     // was supplied.
0
-                    var q = queues[id];
0
+                    q = queues[id];
0
                     if (q.varName) {
0
-                        var freq=YAHOO.util.Get.POLL_FREQ;
0
+                        freq = YAHOO.util.Get.POLL_FREQ;
0
                         q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
0
                         q.attempts = 0;
0
                         q._cache = q.varName[0].split(".");
0
                         q.timer = lang.later(freq, q, function(o) {
0
-                            var a=this._cache, l=a.length, w=this.win, i;
0
+                            a = this._cache;
0
+                            l = a.length; 
0
+                            w = this.win;
0
                             for (i=0; i<l; i=i+1) {
0
                                 w = w[a[i]];
0
                                 if (!w) {
0
                                     // if we have exausted our attempts, give up
0
                                     this.attempts++;
0
                                     if (this.attempts++ > this.maxattempts) {
0
-                                        var msg = "Over retry limit, giving up";
0
+                                        msg = "Over retry limit, giving up";
0
                                         q.timer.cancel();
0
                                         _fail(id, msg);
0
                                     } else {
0
@@ -1591,6 +1543,65 @@ YAHOO.util.Get = function() {
0
         }
0
     };
0
 
0
+    /*
0
+     * The request failed, execute fail handler with whatever
0
+     * was accomplished.  There isn't a failure case at the
0
+     * moment unless you count aborted transactions
0
+     * @method _fail
0
+     * @param id {string} the id of the request
0
+     * @private
0
+     */
0
+    _fail = function(id, msg) {
0
+        var q = queues[id], context;
0
+        // execute failure callback
0
+        if (q.onFailure) {
0
+            context = q.scope || q.win;
0
+            q.onFailure.call(context, _returnData(q, msg));
0
+        }
0
+    };
0
+
0
+    /**
0
+     * Removes the nodes for the specified queue
0
+     * @method _purge
0
+     * @private
0
+     */
0
+    _purge = function(tId) {
0
+        if (queues[tId]) {
0
+
0
+            var q     = queues[tId],
0
+                nodes = q.nodes, 
0
+                l     = nodes.length, 
0
+                d     = q.win.document, 
0
+                h     = d.getElementsByTagName("head")[0],
0
+                sib, i, node, attr;
0
+
0
+            if (q.insertBefore) {
0
+                sib = _get(q.insertBefore, tId);
0
+                if (sib) {
0
+                    h = sib.parentNode;
0
+                }
0
+            }
0
+
0
+            for (i=0; i<l; i=i+1) {
0
+                node = nodes[i];
0
+                if (node.clearAttributes) {
0
+                    node.clearAttributes();
0
+                } else {
0
+                    for (attr in node) {
0
+                        if (node.hasOwnProperty(attr)) {
0
+                            delete node[attr];
0
+                        }
0
+                    }
0
+                }
0
+
0
+                h.removeChild(node);
0
+            }
0
+
0
+            q.nodes = [];
0
+        }
0
+    };
0
+
0
+
0
     return {
0
 
0
         /**
0
@@ -1638,8 +1649,8 @@ YAHOO.util.Get = function() {
0
          * script() or css()
0
          */
0
         abort: function(o) {
0
-            var id = (lang.isString(o)) ? o : o.tId;
0
-            var q = queues[id];
0
+            var id = (lang.isString(o)) ? o : o.tId,
0
+                q = queues[id];
0
             if (q) {
0
                 q.aborted = true;
0
             }
0
src/get/README
...
1
2
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
0
@@ -1,5 +1,8 @@
0
 get - Release Notes
0
 
0
+next
0
+    * charset defaults to utf-8 again
0
+
0
 2.8.0
0
     * Added 'attributes' config, which is a hash of attributes to apply to dynamic nodes.  deprecated charset
0
 
0
src/get/js/Get.js
...
35
36
37
38
39
40
41
42
43
44
...
46
47
48
49
 
50
51
52
53
 
 
 
 
 
54
55
56
...
61
62
63
64
65
 
 
66
67
68
 
 
69
70
71
72
73
74
 
75
76
77
...
81
82
83
84
 
85
86
87
...
95
96
97
98
 
99
100
101
...
105
106
107
108
 
109
110
111
...
117
118
119
120
 
121
122
123
124
125
126
127
 
128
129
130
...
135
136
137
138
 
139
140
 
141
142
143
...
145
146
147
148
 
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
...
171
172
173
174
 
175
176
 
177
178
179
180
 
181
182
183
184
185
186
187
188
 
 
189
190
 
191
192
193
...
195
196
197
198
 
199
200
 
201
202
203
 
 
204
205
 
206
207
208
...
211
212
213
214
 
 
215
216
 
 
 
217
218
219
...
221
222
223
224
 
225
226
227
...
239
240
241
242
243
244
245
...
255
256
257
258
 
259
260
261
...
267
268
269
270
 
271
272
273
...
297
298
299
300
 
301
302
303
...
314
315
316
317
 
318
319
320
321
322
323
324
 
325
326
 
327
328
329
330
331
332
333
334
335
336
337
338
339
340
 
341
342
343
344
345
346
347
348
 
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
 
 
 
 
 
 
372
373
374
375
376
377
378
379
 
 
 
380
381
382
...
387
388
389
390
 
391
392
 
393
394
395
...
405
406
407
408
 
409
410
411
412
413
414
415
416
417
 
 
418
419
420
...
439
440
441
442
443
 
 
444
445
446
447
448
 
449
450
451
...
477
478
479
480
 
481
482
 
483
484
485
486
487
488
 
 
 
489
490
491
492
493
494
495
 
496
497
498
...
525
526
527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
529
530
...
573
574
575
576
577
 
 
578
579
580
...
35
36
37
 
 
 
 
38
39
40
...
42
43
44
 
45
46
47
48
 
49
50
51
52
53
54
55
56
...
61
62
63
 
 
64
65
66
 
 
67
68
69
70
71
72
73
 
74
75
76
77
...
81
82
83
 
84
85
86
87
...
95
96
97
 
98
99
100
101
...
105
106
107
 
108
109
110
111
...
117
118
119
 
120
121
122
123
124
125
126
 
127
128
129
130
...
135
136
137
 
138
139
 
140
141
142
143
...
145
146
147
 
148
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
151
152
...
154
155
156
 
157
158
 
159
160
161
162
 
163
164
165
166
167
168
169
 
 
170
171
172
 
173
174
175
176
...
178
179
180
 
181
182
 
183
184
 
 
185
186
187
 
188
189
190
191
...
194
195
196
 
197
198
199
 
200
201
202
203
204
205
...
207
208
209
 
210
211
212
213
...
225
226
227
 
228
229
230
...
240
241
242
 
243
244
245
246
...
252
253
254
 
255
256
257
258
...
282
283
284
 
285
286
287
288
...
299
300
301
 
302
303
304
305
306
307
308
 
309
310
 
311
312
313
314
 
 
 
 
 
 
 
 
 
 
 
315
316
 
 
 
 
 
 
 
317
318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
320
321
322
323
324
325
 
 
326
 
 
327
 
328
329
330
331
332
333
...
338
339
340
 
341
342
 
343
344
345
346
...
356
357
358
 
359
360
361
362
363
364
 
 
 
 
365
366
367
368
369
...
388
389
390
 
 
391
392
393
394
395
396
 
397
398
399
400
...
426
427
428
 
429
430
 
431
432
433
434
435
436
 
437
438
439
440
441
442
443
444
445
 
446
447
448
449
...
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
...
584
585
586
 
 
587
588
589
590
591
0
@@ -35,10 +35,6 @@ YAHOO.util.Get = function() {
0
      */
0
         nidx=0, 
0
 
0
-        // ridx=0,
0
-
0
-        // sandboxFrame=null,
0
-
0
     /**
0
      * interal property used to prevent multiple simultaneous purge 
0
      * processes
0
@@ -46,11 +42,15 @@ YAHOO.util.Get = function() {
0
      * @type boolean
0
      * @private
0
      */
0
-        purging=false,
0
+        _purging=false,
0
 
0
         ua=YAHOO.env.ua, 
0
         
0
-        lang=YAHOO.lang;
0
+        lang=YAHOO.lang,
0
+    
0
+    _fail, 
0
+    _purge, 
0
+    _track,
0
     
0
     /** 
0
      * Generates an HTML element, this is not appended to a document
0
@@ -61,17 +61,17 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _node = function(type, attr, win) {
0
-        var w = win || window, d=w.document, n=d.createElement(type);
0
+    _node = function(type, attr, win) {
0
+        var w = win || window, d=w.document, n=d.createElement(type), i;
0
 
0
-        for (var i in attr) {
0
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
0
+        for (i in attr) {
0
+            if (attr.hasOwnProperty(i)) {
0
                 n.setAttribute(i, attr[i]);
0
             }
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a link node
0
@@ -81,7 +81,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _linkNode = function(url, win, attributes) {
0
+    _linkNode = function(url, win, attributes) {
0
 
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
@@ -95,7 +95,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("link", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Generates a script node
0
@@ -105,7 +105,7 @@ YAHOO.util.Get = function() {
0
      * @return {HTMLElement} the generated node
0
      * @private
0
      */
0
-    var _scriptNode = function(url, win, attributes) {
0
+    _scriptNode = function(url, win, attributes) {
0
         var o = {
0
             id:   "yui__dyn_" + (nidx++),
0
             type: "text/javascript",
0
@@ -117,14 +117,14 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return _node("script", o, win);
0
-    };
0
+    },
0
 
0
     /**
0
      * Returns the data payload for callback functions
0
      * @method _returnData
0
      * @private
0
      */
0
-    var _returnData = function(q, msg) {
0
+    _returnData = function(q, msg) {
0
         return {
0
                 tId: q.tId,
0
                 win: q.win,
0
@@ -135,9 +135,9 @@ YAHOO.util.Get = function() {
0
                     _purge(this.tId);
0
                 }
0
             };
0
-    };
0
+    },
0
 
0
-    var _get = function(nId, tId) {
0
+    _get = function(nId, tId) {
0
         var q = queues[tId],
0
             n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
0
         if (!n) {
0
@@ -145,25 +145,8 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         return n;
0
-    };
0
+    },
0
 
0
-    /*
0
-     * The request failed, execute fail handler with whatever
0
-     * was accomplished.  There isn't a failure case at the
0
-     * moment unless you count aborted transactions
0
-     * @method _fail
0
-     * @param id {string} the id of the request
0
-     * @private
0
-     */
0
-    var _fail = function(id, msg) {
0
-        YAHOO.log("get failure: " + msg, "warn", "Get");
0
-        var q = queues[id];
0
-        // execute failure callback
0
-        if (q.onFailure) {
0
-            var sc=q.scope || q.win;
0
-            q.onFailure.call(sc, _returnData(q, msg));
0
-        }
0
-    };
0
 
0
     /**
0
      * The request is complete, so executing the requester's callback
0
@@ -171,23 +154,23 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _finish = function(id) {
0
+    _finish = function(id) {
0
         YAHOO.log("Finishing transaction " + id);
0
-        var q = queues[id];
0
+        var q = queues[id], msg, context;
0
         q.finished = true;
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
 
0
         // execute success callback
0
         if (q.onSuccess) {
0
-            var sc=q.scope || q.win;
0
-            q.onSuccess.call(sc, _returnData(q));
0
+            context = q.scope || q.win;
0
+            q.onSuccess.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Timeout detected
0
@@ -195,14 +178,14 @@ YAHOO.util.Get = function() {
0
      * @param id {string} the id of the request
0
      * @private
0
      */
0
-    var _timeout = function(id) {
0
+    _timeout = function(id) {
0
         YAHOO.log("Timeout " + id, "info", "get");
0
-        var q = queues[id];
0
+        var q = queues[id], context;
0
         if (q.onTimeout) {
0
-            var sc=q.scope || q;
0
-            q.onTimeout.call(sc, _returnData(q));
0
+            context = q.scope || q;
0
+            q.onTimeout.call(context, _returnData(q));
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Loads the next item for a given request
0
@@ -211,9 +194,12 @@ YAHOO.util.Get = function() {
0
      * @param loaded {string} the url that was just loaded, if any
0
      * @private
0
      */
0
-    var _next = function(id, loaded) {
0
+    _next = function(id, loaded) {
0
+
0
         YAHOO.log("_next: " + id + ", loaded: " + loaded, "info", "Get");
0
-        var q = queues[id];
0
+
0
+        var q = queues[id], w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], 
0
+            n, msg, url, s, extra;
0
 
0
         if (q.timer) {
0
             // Y.log('cancel timer');
0
@@ -221,7 +207,7 @@ YAHOO.util.Get = function() {
0
         }
0
 
0
         if (q.aborted) {
0
-            var msg = "transaction " + id + " was aborted";
0
+            msg = "transaction " + id + " was aborted";
0
             _fail(id, msg);
0
             return;
0
         }
0
@@ -239,7 +225,6 @@ YAHOO.util.Get = function() {
0
             }
0
         }
0
 
0
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
0
 
0
         if (q.url.length === 0) {
0
             // Safari 2.x workaround - There is no way to know when 
0
@@ -255,7 +240,7 @@ YAHOO.util.Get = function() {
0
                 // arbitrary timeout.  It is possible that the browser does
0
                 // block subsequent script execution in this case for a limited
0
                 // time.
0
-                var extra = _scriptNode(null, q.win, q.attributes);
0
+                extra = _scriptNode(null, q.win, q.attributes);
0
                 extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
0
                 q.nodes.push(extra); h.appendChild(extra);
0
 
0
@@ -267,7 +252,7 @@ YAHOO.util.Get = function() {
0
         } 
0
 
0
 
0
-        var url = q.url[0];
0
+        url = q.url[0];
0
 
0
         // if the url is undefined, this is probably a trailing comma problem in IE
0
         if (!url) {
0
@@ -297,7 +282,7 @@ YAHOO.util.Get = function() {
0
 
0
         // add it to the head or insert it before 'insertBefore'
0
         if (q.insertBefore) {
0
-            var s = _get(q.insertBefore, id);
0
+            s = _get(q.insertBefore, id);
0
             if (s) {
0
                 s.parentNode.insertBefore(n, s);
0
             }
0
@@ -314,69 +299,35 @@ YAHOO.util.Get = function() {
0
         if ((ua.webkit || ua.gecko) && q.type === "css") {
0
             _next(id, url);
0
         }
0
-    };
0
+    },
0
 
0
     /**
0
      * Removes processed queues and corresponding nodes
0
      * @method _autoPurge
0
      * @private
0
      */
0
-    var _autoPurge = function() {
0
+    _autoPurge = function() {
0
 
0
-        if (purging) {
0
+        if (_purging) {
0
             return;
0
         }
0
 
0
-        purging = true;
0
-        for (var i in queues) {
0
-            var q = queues[i];
0
-            if (q.autopurge && q.finished) {
0
-                _purge(q.tId);
0
-                delete queues[i];
0
-            }
0
-        }
0
-
0
-        purging = false;
0
-    };
0
+        _purging = true;
0
 
0
-    /**
0
-     * Removes the nodes for the specified queue
0
-     * @method _purge
0
-     * @private
0
-     */
0
-    var _purge = function(tId) {
0
-        if (queues[tId]) {
0
+        var i, q;
0
 
0
-            var q     = queues[tId],
0
-                nodes = q.nodes, 
0
-                l     = nodes.length, 
0
-                d     = q.win.document, 
0
-                h     = d.getElementsByTagName("head")[0],
0
-                sib, i, node, attr;
0
-
0
-            if (q.insertBefore) {
0
-                sib = _get(q.insertBefore, tId);
0
-                if (sib) {
0
-                    h = sib.parentNode;
0
-                }
0
-            }
0
-
0
-            for (i=0; i<l; i=i+1) {
0
-                node = nodes[i];
0
-                if (node.clearAttributes) {
0
-                    node.clearAttributes();
0
-                } else {
0
-                    for (attr in node) {
0
-                        delete node[attr];
0
-                    }
0
+        for (i in queues) {
0
+            if (queues.hasOwnProperty(i)) {
0
+                q = queues[i];
0
+                if (q.autopurge && q.finished) {
0
+                    _purge(q.tId);
0
+                    delete queues[i];
0
                 }
0
-
0
-                h.removeChild(node);
0
             }
0
-
0
-            q.nodes = [];
0
         }
0
-    };
0
+
0
+        _purging = false;
0
+    },
0
 
0
     /**
0
      * Saves the state for the request and begins loading
0
@@ -387,9 +338,9 @@ YAHOO.util.Get = function() {
0
      * @param opts the hash of options for this request
0
      * @private
0
      */
0
-    var _queue = function(type, url, opts) {
0
+    _queue = function(type, url, opts) {
0
 
0
-        var id = "q" + (qidx++);
0
+        var id = "q" + (qidx++), q;
0
         opts = opts || {};
0
 
0
         if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
0
@@ -405,16 +356,14 @@ YAHOO.util.Get = function() {
0
             nodes: []
0
         });
0
 
0
-        var q = queues[id];
0
+        q = queues[id];
0
         q.win = q.win || window;
0
         q.scope = q.scope || q.win;
0
         q.autopurge = ("autopurge" in q) ? q.autopurge : 
0
                       (type === "script") ? true : false;
0
 
0
-        if (opts.charset) {
0
-            q.attributes = q.attributes || {};
0
-            q.attributes.charset = opts.charset;
0
-        }
0
+        q.attributes = q.attributes || {};
0
+        q.attributes.charset = opts.charset || q.attributes.charset || 'utf-8';
0
 
0
         lang.later(0, q, _next, id);
0
 
0
@@ -439,13 +388,13 @@ YAHOO.util.Get = function() {
0
      * the default is _next
0
      * @private
0
      */
0
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
0
-        var f = trackfn || _next;
0
+    _track = function(type, n, id, url, win, qlength, trackfn) {
0
+        var f = trackfn || _next, rs, q, a, freq, w, l, i, msg;
0
 
0
         // IE supports the readystatechange event for script and css nodes
0
         if (ua.ie) {
0
             n.onreadystatechange = function() {
0
-                var rs = this.readyState;
0
+                rs = this.readyState;
0
                 if ("loaded" === rs || "complete" === rs) {
0
                     YAHOO.log(id + " onload " + url, "info", "Get");
0
                     n.onreadystatechange = null;
0
@@ -477,22 +426,24 @@ YAHOO.util.Get = function() {
0
                 } else {
0
                     // Poll for the existence of the named variable, if it
0
                     // was supplied.
0
-                    var q = queues[id];
0
+                    q = queues[id];
0
                     if (q.varName) {
0
-                        var freq=YAHOO.util.Get.POLL_FREQ;
0
+                        freq = YAHOO.util.Get.POLL_FREQ;
0
                         YAHOO.log("Polling for " + q.varName[0]);
0
                         q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
0
                         q.attempts = 0;
0
                         q._cache = q.varName[0].split(".");
0
                         q.timer = lang.later(freq, q, function(o) {
0
-                            var a=this._cache, l=a.length, w=this.win, i;
0
+                            a = this._cache;
0
+                            l = a.length; 
0
+                            w = this.win;
0
                             for (i=0; i<l; i=i+1) {
0
                                 w = w[a[i]];
0
                                 if (!w) {
0
                                     // if we have exausted our attempts, give up
0
                                     this.attempts++;
0
                                     if (this.attempts++ > this.maxattempts) {
0
-                                        var msg = "Over retry limit, giving up";
0
+                                        msg = "Over retry limit, giving up";
0
                                         q.timer.cancel();
0
                                         _fail(id, msg);
0
                                     } else {
0
@@ -525,6 +476,66 @@ YAHOO.util.Get = function() {
0
         }
0
     };
0
 
0
+    /*
0
+     * The request failed, execute fail handler with whatever
0
+     * was accomplished.  There isn't a failure case at the
0
+     * moment unless you count aborted transactions
0
+     * @method _fail
0
+     * @param id {string} the id of the request
0
+     * @private
0
+     */
0
+    _fail = function(id, msg) {
0
+        YAHOO.log("get failure: " + msg, "warn", "Get");
0
+        var q = queues[id], context;
0
+        // execute failure callback
0
+        if (q.onFailure) {
0
+            context = q.scope || q.win;
0
+            q.onFailure.call(context, _returnData(q, msg));
0
+        }
0
+    };
0
+
0
+    /**
0
+     * Removes the nodes for the specified queue
0
+     * @method _purge
0
+     * @private
0
+     */
0
+    _purge = function(tId) {
0
+        if (queues[tId]) {
0
+
0
+            var q     = queues[tId],
0
+                nodes = q.nodes, 
0
+                l     = nodes.length, 
0
+                d     = q.win.document, 
0
+                h     = d.getElementsByTagName("head")[0],
0
+                sib, i, node, attr;
0
+
0
+            if (q.insertBefore) {
0
+                sib = _get(q.insertBefore, tId);
0
+                if (sib) {
0
+                    h = sib.parentNode;
0
+                }
0
+            }
0
+
0
+            for (i=0; i<l; i=i+1) {
0
+                node = nodes[i];
0
+                if (node.clearAttributes) {
0
+                    node.clearAttributes();
0
+                } else {
0
+                    for (attr in node) {
0
+                        if (node.hasOwnProperty(attr)) {
0
+                            delete node[attr];
0
+                        }
0
+                    }
0
+                }
0
+
0
+                h.removeChild(node);
0
+            }
0
+
0
+            q.nodes = [];
0
+        }
0
+    };
0
+
0
+
0
     return {
0
 
0
         /**
0
@@ -573,8 +584,8 @@ YAHOO.util.Get = function() {
0
          * script() or css()
0
          */
0
         abort: function(o) {
0
-            var id = (lang.isString(o)) ? o : o.tId;
0
-            var q = queues[id];
0
+            var id = (lang.isString(o)) ? o : o.tId,
0
+                q = queues[id];
0
             if (q) {
0
                 YAHOO.log("Aborting " + id, "info", "Get");
0
                 q.aborted = true;

Comments

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server