commit | 0e6992abf035e1cbeadeea14220a9a4a9e0fde78 | [log] [tgz] |
---|---|---|
author | Nils Diewald <nils@diewald-online.de> | Tue Apr 14 20:13:52 2015 +0000 |
committer | Nils Diewald <nils@diewald-online.de> | Tue Apr 14 20:13:52 2015 +0000 |
tree | f8df32c06d90b80b2a8bf82236eb5a52834ab84b | |
parent | 1c54692e512ca0768c0cff02917c0a2d3a8991cb [diff] [blame] |
Use requirejs for clientside scripting
diff --git a/dev/js/src/vc/menu.js b/dev/js/src/vc/menu.js new file mode 100644 index 0000000..6f6d2bd --- /dev/null +++ b/dev/js/src/vc/menu.js
@@ -0,0 +1,10 @@ +// Field menu +define(['menu', 'menu/item'], function (menuClass, itemClass) { + return { + create : function (params) { + return Object.create(menuClass) + .upgradeTo(this) + ._init(itemClass, undefined, params) + } + }; +});