Permalink
Browse files

Merge branch 'master' into position-notification

  • Loading branch information...
2 parents 2cf9948 + 33df9b7 commit 308b55e50ca781ad9db08a252f313ee2e8e2f257 @scottgonzalez scottgonzalez committed Apr 20, 2012
Showing with 1,686 additions and 11,099 deletions.
  1. +0 −3 .gitignore
  2. +0 −373 build/build.xml
  3. BIN build/build/ant-contrib-0.6.jar
  4. +0 −5,504 build/build/lib/jslint.js
  5. +0 −1,315 build/build/lib/parse-js.js
  6. +0 −1,666 build/build/lib/process.js
  7. +0 −22 build/build/lib/squeeze-more.js
  8. +0 −3 build/build/minify-js.sh
  9. +0 −41 build/build/sizer.js
  10. +0 −211 build/build/style.xsl
  11. +0 −285 build/build/uglify.js
  12. BIN build/build/yuicompressor-2.4.2.jar
  13. +6 −31 demos/position/default.html
  14. +60 −90 grunt.js
  15. +3 −2 package.json
  16. +12 −9 tests/unit/accordion/accordion_core.js
  17. +1 −1 tests/unit/accordion/accordion_defaults.js
  18. +1 −1 tests/unit/accordion/accordion_defaults_deprecated.js
  19. +63 −59 tests/unit/accordion/accordion_deprecated.js
  20. +22 −19 tests/unit/accordion/accordion_events.js
  21. +11 −7 tests/unit/accordion/accordion_methods.js
  22. +72 −68 tests/unit/accordion/accordion_options.js
  23. +30 −28 tests/unit/accordion/accordion_test_helpers.js
  24. +1 −1 tests/unit/autocomplete/autocomplete_defaults.js
  25. +1 −1 tests/unit/autocomplete/autocomplete_events.js
  26. +6 −5 tests/unit/button/button_core.js
  27. +1 −1 tests/unit/button/button_defaults.js
  28. +2 −2 tests/unit/button/button_methods.js
  29. +41 −39 tests/unit/datepicker/datepicker_core.js
  30. +1 −1 tests/unit/datepicker/datepicker_defaults.js
  31. +9 −8 tests/unit/datepicker/datepicker_events.js
  32. +18 −16 tests/unit/datepicker/datepicker_methods.js
  33. +112 −119 tests/unit/datepicker/datepicker_options.js
  34. +7 −7 tests/unit/datepicker/datepicker_tickets.js
  35. +4 −4 tests/unit/dialog/dialog_core.js
  36. +1 −1 tests/unit/dialog/dialog_defaults.js
  37. +6 −4 tests/unit/dialog/dialog_events.js
  38. +6 −3 tests/unit/dialog/dialog_methods.js
  39. +47 −47 tests/unit/dialog/dialog_options.js
  40. +11 −10 tests/unit/dialog/dialog_tickets.js
  41. +9 −9 tests/unit/draggable/draggable_core.js
  42. +32 −36 tests/unit/draggable/draggable_defaults.js
  43. +35 −44 tests/unit/draggable/draggable_options.js
  44. +5 −5 tests/unit/droppable/droppable_core.js
  45. +12 −16 tests/unit/droppable/droppable_defaults.js
  46. +0 −4 tests/unit/droppable/droppable_options.js
  47. +8 −9 tests/unit/effects/effects_core.js
  48. +9 −10 tests/unit/effects/effects_scale.js
  49. +16 −0 tests/unit/menu/menu.html
  50. +5 −4 tests/unit/menu/menu_core.js
  51. +1 −1 tests/unit/menu/menu_defaults.js
  52. +145 −87 tests/unit/menu/menu_events.js
  53. +10 −7 tests/unit/menu/menu_methods.js
  54. +11 −8 tests/unit/menu/menu_options.js
  55. +15 −13 tests/unit/menu/menu_test_helpers.js
  56. +20 −20 tests/unit/position/position_core.js
  57. +64 −69 tests/unit/position/position_core_within.js
  58. +1 −1 tests/unit/progressbar/progressbar_defaults.js
  59. +1 −1 tests/unit/progressbar/progressbar_events.js
  60. +24 −28 tests/unit/resizable/resizable_defaults.js
  61. +1 −1 tests/unit/resizable/resizable_methods.js
  62. +9 −0 tests/unit/resizable/resizable_options.js
  63. +12 −16 tests/unit/selectable/selectable_defaults.js
  64. +9 −7 tests/unit/selectable/selectable_methods.js
  65. +3 −3 tests/unit/selectable/selectable_options.js
  66. +1 −1 tests/unit/slider/slider_defaults.js
  67. +8 −6 tests/unit/slider/slider_methods.js
  68. +5 −5 tests/unit/slider/slider_options.js
  69. +30 −34 tests/unit/sortable/sortable_defaults.js
  70. +32 −32 tests/unit/sortable/sortable_events.js
  71. +2 −2 tests/unit/sortable/sortable_methods.js
  72. +2 −2 tests/unit/sortable/sortable_tickets.js
  73. +25 −23 tests/unit/spinner/spinner_core.js
  74. +1 −1 tests/unit/spinner/spinner_defaults.js
  75. +27 −25 tests/unit/spinner/spinner_events.js
  76. +8 −6 tests/unit/spinner/spinner_methods.js
  77. +3 −1 tests/unit/spinner/spinner_options.js
  78. +7 −4 tests/unit/spinner/spinner_test_helpers.js
  79. +6 −7 tests/unit/subsuite.js
  80. +16 −10 tests/unit/subsuiteRunner.js
  81. +1 −1 tests/unit/swarminject.js
  82. +1 −56 tests/unit/tabs/tabs.html
  83. +3 −1 tests/unit/tabs/tabs_core.js
  84. +1 −1 tests/unit/tabs/tabs_defaults.js
  85. +1 −1 tests/unit/tabs/tabs_defaults_deprecated.js
  86. +1 −56 tests/unit/tabs/tabs_deprecated.html
  87. +57 −53 tests/unit/tabs/tabs_deprecated.js
  88. +25 −23 tests/unit/tabs/tabs_events.js
  89. +49 −48 tests/unit/tabs/tabs_methods.js
  90. +37 −34 tests/unit/tabs/tabs_options.js
  91. +61 −0 tests/unit/tabs/tabs_test_helpers.js
  92. +13 −9 tests/unit/testsuite.js
  93. +1 −1 tests/unit/tooltip/tooltip_defaults.js
  94. +6 −4 tests/unit/tooltip/tooltip_methods.js
  95. +6 −5 tests/unit/tooltip/tooltip_options.js
  96. +37 −33 tests/unit/widget/widget_core.js
  97. +23 −24 tests/unit/widget/widget_extend.js
  98. +1 −1 tests/visual/menu/menu.html
  99. +1 −1 themes/base/jquery.ui.menu.css
  100. +1 −1 themes/base/jquery.ui.resizable.css
  101. +9 −9 ui/i18n/jquery.ui.datepicker-hi.js
  102. +8 −8 ui/jquery.effects.bounce.js
  103. +12 −12 ui/jquery.effects.drop.js
  104. +1 −1 ui/jquery.effects.fade.js
  105. +34 −34 ui/jquery.effects.scale.js
  106. +10 −10 ui/jquery.effects.slide.js
  107. +7 −7 ui/jquery.ui.dialog.js
  108. +47 −50 ui/jquery.ui.menu.js
  109. +2 −3 ui/jquery.ui.resizable.js
  110. +45 −46 ui/jquery.ui.sortable.js
  111. +0 −1 version.txt
View
@@ -1,6 +1,3 @@
-build/dist
-build/size
-build/build/.sizecache.json
dist
node_modules
docs
View
Oops, something went wrong.
Binary file not shown.
View
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
@@ -1,22 +0,0 @@
-var jsp = require("./parse-js"),
- pro = require("./process"),
- slice = jsp.slice,
- member = jsp.member,
- PRECEDENCE = jsp.PRECEDENCE,
- OPERATORS = jsp.OPERATORS;
-
-function ast_squeeze_more(ast) {
- var w = pro.ast_walker(), walk = w.walk;
- return w.with_walkers({
- "call": function(expr, args) {
- if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
- // foo.toString() ==> foo+""
- return [ "binary", "+", expr[1], [ "string", "" ]];
- }
- }
- }, function() {
- return walk(ast);
- });
-};
-
-exports.ast_squeeze_more = ast_squeeze_more;
@@ -1,3 +0,0 @@
-#!/bin/bash
-dir=$(dirname $0)
-`which node nodejs 2> /dev/null` $dir/uglify.js $1 > $2
View
@@ -1,41 +0,0 @@
-var fs = require( "fs" ),
- stdin = process.openStdin(),
- rsize = /(\d+).*?(jquery\S+)/g,
- oldsizes = {},
- sizes = {},
- input = "";
-
-stdin.setEncoding( "utf8" );
-
-try {
- oldsizes = JSON.parse( fs.readFileSync( __dirname + "/.sizecache.json", "utf8" ) );
-} catch(e) {
- oldsizes = {};
-};
-
-function lpad( str, len, chr ) {
- return ( Array(len+1).join( chr || " ") + str ).substr( -len );
-}
-
-stdin.on( "data" , function( chunk ) {
- input += chunk;
-});
-stdin.on( "end", function() {
- var match;
-
- while ( match = rsize.exec( input ) ) {
- sizes[ match[2] ] = parseInt( match[1], 10 );
- }
-
- fs.writeFileSync( __dirname + "/.sizecache.json", JSON.stringify( sizes, true ), "utf8" );
- for ( var key in sizes ) {
- var diff = oldsizes[ key ] && ( sizes[ key ] - oldsizes[ key ] );
- if ( diff > 0 ) {
- diff = "+" + diff;
- }
- console.log( "%s %s %s", lpad( sizes[ key ], 8 ), lpad( oldsizes[key] ? "(" + diff + ")" : "(-)", 8 ), key );
- }
- process.nextTick(function() {
- process.exit();
- });
-});
View
@@ -1,211 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="html" />
-
- <xsl:template name="ref">
- <xsl:text>link-</xsl:text>
- <xsl:value-of select="translate(@name, '$.|', '')"/>
- <xsl:text>-</xsl:text>
- <xsl:for-each select="params">
- <xsl:value-of select="translate(@name, '&lt;&gt;|$.', '')" />
- </xsl:for-each>
- </xsl:template>
-
- <xsl:template name="href">
- <xsl:attribute name="href">
- <xsl:text>#</xsl:text>
- <xsl:call-template name="ref" />
- </xsl:attribute>
- </xsl:template>
-
- <xsl:template name="id">
- <xsl:attribute name="id">
- <xsl:call-template name="ref" />
- </xsl:attribute>
- </xsl:template>
-
- <xsl:template name="return">
- <xsl:attribute name="title">
- <xsl:choose>
- <xsl:when test="@return='jQuery'">A jQuery object.</xsl:when>
- <xsl:when test="@return='Boolean'">true or false.</xsl:when>
- <xsl:when test="@return='Object'">A simple Javascript object..</xsl:when>
- <xsl:when test="@return='String'">A string of characters.</xsl:when>
- <xsl:when test="@return='Number'">A valid numeric.</xsl:when>
- <xsl:when test="@return='String|Number'">A string of characters or a number.</xsl:when>
- <xsl:when test="@return='Element'">The Javascript object representation of a DOM Element.</xsl:when>
- <xsl:when test="@return='Element|Array&lt;Element&gt;'">One or more DOM Elements (a single one or an array).</xsl:when>
- <xsl:when test="@return='Map'">A Javascript object that contains key/value pairs in the form of properties and values.</xsl:when>
- <xsl:when test="@return='Array&lt;Element&gt;'">An Array of DOM Elements.</xsl:when>
- <xsl:when test="@return='Array&lt;String&gt;'">An Array of strings.</xsl:when>
- <xsl:when test="@return='Function'">A reference to a Javascript function.</xsl:when>
- <xsl:when test="@return='XMLHttpRequest'">An XMLHttpRequest object (referencing a HTTP request).</xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <xsl:value-of select="@return"/>
- </xsl:template>
-
- <xsl:template name="type">
- <xsl:attribute name="title">
- <xsl:choose>
- <xsl:when test="@type='jQuery'">A jQuery object.</xsl:when>
- <xsl:when test="@type='Boolean'">true or false.</xsl:when>
- <xsl:when test="@type='Object'">A simple Javascript object..</xsl:when>
- <xsl:when test="@type='String'">A string of characters.</xsl:when>
- <xsl:when test="@type='Number'">A valid numeric.</xsl:when>
- <xsl:when test="@type='String|Number'">A string of characters or a number.</xsl:when>
- <xsl:when test="@type='Element'">The Javascript object representation of a DOM Element.</xsl:when>
- <xsl:when test="@type='Element|Array&lt;Element&gt;'">One or more DOM Elements (a single one or an array).</xsl:when>
- <xsl:when test="@type='Map'">A Javascript object that contains key/value pairs in the form of properties and values.</xsl:when>
- <xsl:when test="@type='Array&lt;Element&gt;'">An Array of DOM Elements.</xsl:when>
- <xsl:when test="@type='Array&lt;String&gt;'">An Array of strings.</xsl:when>
- <xsl:when test="@type='Function'">A reference to a Javascript function.</xsl:when>
- <xsl:when test="@type='XMLHttpRequest'">An XMLHttpRequest object (referencing a HTTP request).</xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <xsl:value-of select="@type"/>
- </xsl:template>
-
- <xsl:template name="break">
- <xsl:value-of select="." disable-output-escaping="yes" />
- </xsl:template>
-
- <xsl:template name="option">
- <div class="param">
- <div class="param-header">
- <h3><span><xsl:value-of select="@name"/></span></h3>
- <p class="param-type"><span><xsl:call-template name="type" /></span></p>
- <p class="param-default">Default: <xsl:value-of select="@default"/></p>
- </div>
- <div class="param-details">
- <p><xsl:value-of select="desc"/></p>
- <!-- TODO select all examples -->
- <xsl:for-each select="following-sibling::example[1]">
- <h4>Code sample:</h4>
- <p><xsl:value-of select="desc" disable-output-escaping="yes"/></p>
- <code>
- <xsl:value-of select="code"/>
- </code>
- </xsl:for-each>
- </div>
- </div>
- </xsl:template>
-
- <xsl:template match="/*">
- <div id="widget-docs">
- <ul>
- <li><a href="#docs-overview"><span>Overview</span></a></li>
- <li><a href="#docs-options"><span>Options</span></a></li>
- <li><a href="#docs-methods"><span>Methods</span></a></li>
- <li><a href="#docs-theming"><span>Theming</span></a></li>
- </ul>
-
- <!-- TAB 1 -->
- <div id="docs-overview">
- <div id="docs-overview-sidebar">
- <h4>Dependencies:</h4>
- <ul>
- <li><a href="#">jquery.ui.core.js</a></li>
- <li><a href="#">jquery.ui.draggable.js <span>(Optional)</span></a></li>
- <li><a href="#">jquery.ui.resizable.js <span>(Optional)</span></a></li>
- </ul>
- </div>
- <div id="docs-overview-main">
- <p>
- <xsl:for-each select="//function[1]/desc">
- <xsl:call-template name="break" />
- </xsl:for-each>
- </p>
- <p>
- <xsl:for-each select="//function[1]/longdesc">
- <xsl:call-template name="break" />
- </xsl:for-each>
- </p>
- </div>
- </div>
-
- <!-- TAB 2 -->
- <div id="docs-options">
- <p class="intro"><xsl:value-of select="//function[1]/params/desc"/></p>
-
- <div class="docs-list-header clearfix">
- <h2>Property options</h2>
- <p><a href="#">Show details</a> | <a href="#">Hide details</a></p>
- </div>
-
- <div class="docs-list clearfix">
- <xsl:for-each select="//function[1]/option[not(starts-with(@type, 'function'))]">
- <xsl:call-template name="option"/>
- </xsl:for-each>
- </div><!-- /property options -->
-
- <div class="docs-list-header clearfix">
- <h2>Event options</h2>
- <p><a href="#">Show details</a> | <a href="#">Hide details</a></p>
- </div>
-
- <div class="docs-list clearfix">
- <xsl:for-each select="//function[1]/option[starts-with(@type, 'function')]">
- <xsl:call-template name="option"/>
- </xsl:for-each>
- </div><!-- /event options -->
- </div>
-
- <!-- TAB 3 -->
- <div id="docs-methods">
- <p class="intro">A brief description of methods and their uses goes here so their use is clearly explained and any caveats can be mentioned up front.</p>
-
- <div class="docs-list-header clearfix">
- <h2>Methods</h2>
- <p><a href="#">Show details</a> | <a href="#">Hide details</a></p>
- </div>
-
- <div class="docs-list clearfix">
- <xsl:for-each select="//function[position() != 1]">
- <div class="param">
- <div class="param-header">
- <h3><span><xsl:value-of select="//function[1]/@name"/>( <xsl:value-of select="params[1]/@name"/>
- <xsl:for-each select="params[position() != 1]">
- <xsl:text>, </xsl:text><xsl:value-of select="@name"/>
- </xsl:for-each>
- )</span></h3>
- <p class="param-type">Returns: <span><xsl:call-template name="return" /></span></p>
- </div>
- <div class="param-details">
- <p><xsl:value-of select="desc"/></p>
- <p><xsl:value-of select="longdesc"/></p>
- <h4>Arguments:</h4>
- <table class="param-args" summary="Arguments for this method" cellspacing="0">
- <tbody>
- <xsl:for-each select="params[position() != 1]">
- <tr>
- <td><xsl:value-of select="@name"/></td>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </tbody>
- </table>
-
- <h4>Code sample:</h4>
- <xsl:for-each select="example">
- <h5><xsl:value-of select="desc"/></h5>
- <code>
- <xsl:value-of select="code"/>
- </code>
- </xsl:for-each>
- </div>
- </div>
- </xsl:for-each>
-
- </div><!-- /methods -->
- </div>
-
- <!-- TAB 4 -->
- <div id="docs-theming">
- %%THEMING%%
- </div>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
Oops, something went wrong.

0 comments on commit 308b55e

Please sign in to comment.