diff options
author | Ola Bini <ola.bini@gmail.com> | 2014-07-31 19:29:33 -0300 |
---|---|---|
committer | Ola Bini <ola.bini@gmail.com> | 2014-07-31 19:29:33 -0300 |
commit | 04cf441c5ae18400c6b4865b0b37a71718dc9d46 (patch) | |
tree | dd0b0d049ec00389e2d4561b226c46eb1682b997 /web-ui/app/js/mixins/with_hide_and_show.js | |
parent | 639a663a4c37020003586438fdcd7ac529a00f10 (diff) |
Add web-ui based on previous code
Diffstat (limited to 'web-ui/app/js/mixins/with_hide_and_show.js')
-rw-r--r-- | web-ui/app/js/mixins/with_hide_and_show.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web-ui/app/js/mixins/with_hide_and_show.js b/web-ui/app/js/mixins/with_hide_and_show.js new file mode 100644 index 00000000..8cd97ffa --- /dev/null +++ b/web-ui/app/js/mixins/with_hide_and_show.js @@ -0,0 +1,14 @@ +define(function(require) { + + function withHideAndShow() { + this.hide = function () { + this.$node.hide(); + }; + this.show = function () { + this.$node.show(); + }; + } + + return withHideAndShow; + +}); |