Skip to content
Permalink
Browse files

Widget: Update demo to use AMD

Ref #10119
  • Loading branch information...
arschmitz committed Jul 1, 2015
1 parent b60694e commit 23f0064ecd265ad398f0b7e3140e06ab417493a1
Showing with 2 additions and 8 deletions.
  1. +2 −8 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>

0 comments on commit 23f0064

Please sign in to comment.
You can’t perform that action at this time.