diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 23:46:37 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:42 -0400 |
commit | 23f0064ecd265ad398f0b7e3140e06ab417493a1 (patch) | |
tree | 2c628966da0d8ed1413fd5cbbe8098d96dcdd2c3 /demos | |
parent | b60694ee309a72c44db5e46576f6019ae8c0638f (diff) | |
download | jquery-ui-23f0064ecd265ad398f0b7e3140e06ab417493a1.tar.gz jquery-ui-23f0064ecd265ad398f0b7e3140e06ab417493a1.zip |
Widget: Update demo to use AMD
Ref #10119
Diffstat (limited to 'demos')
-rw-r--r-- | demos/widget/default.html | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/demos/widget/default.html b/demos/widget/default.html index 62a373114..e545ef6ad 100644 --- a/demos/widget/default.html +++ b/demos/widget/default.html @@ -4,11 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Widget - Default functionality</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/position.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/button.js"></script> <link rel="stylesheet" href="../demos.css"> <style> .custom-colorize { @@ -24,8 +19,8 @@ bottom: 0; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js" data-modules="button"> // the widget definition, where "custom" is the namespace, // "colorize" the widget name $.widget( "custom.colorize", { @@ -157,7 +152,6 @@ blue: 8 }); }); - }); </script> </head> <body> |