diff options
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; + +}); |