Widget: Update demo to use AMD

Ref #10119
This commit is contained in:
Alexander Schmitz 2015-06-30 23:46:37 -04:00
parent b60694ee30
commit 23f0064ecd

View File

@ -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>