Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created June 20, 2013 00:20
Show Gist options
  • Save eduardolundgren/5819316 to your computer and use it in GitHub Desktop.
Save eduardolundgren/5819316 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AlloyUI</title>
<!-- <script src="../build/aui/aui.js"></script> -->
<script src="http://cdn.alloyui.com/2.0.0pr5/aui/aui-min.js"></script>
</head>
<body>
<h1>AlloyUI - YUI 3.11.0pr1</h1>
<script>
YUI({ filter: 'raw' }).use('aui-component', 'widget-htmlparser', function(Y) {
// Class ext
function BaseExt() {
this.NS = 'NS';
}
// Base
Y.Foo = Y.Component.create({
NAME: 'foo',
EXTENDS: Y.Base,
ATTRS: {
foo: {
valueFn: function() {
console.log(this.NS)
}
}
},
AUGMENTS: [BaseExt]
});
// Y.Foo = Y.Base.create('foo', Y.Base, [BaseExt],
// {},
// {
// ATTRS: {
// foo: {
// valueFn: function() {
// console.log(this.NS)
// }
// }
// }
// }
// );
new Y.Foo();
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment