From dbd0db9b3f5f5cf959e778875c007b5ec7fb0ee2 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 18 Sep 2014 14:27:02 +0200 Subject: [PATCH] Ox.FileInput: add public clear method --- source/Ox.UI/js/Form/FileInput.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/Ox.UI/js/Form/FileInput.js b/source/Ox.UI/js/Form/FileInput.js index a7e01681..72ad3265 100644 --- a/source/Ox.UI/js/Form/FileInput.js +++ b/source/Ox.UI/js/Form/FileInput.js @@ -324,5 +324,11 @@ Ox.FileInput = function(options, self) { .appendTo(self.$bar); } + that.clear = function() { + clearFile(); + return that; + }; + return that; + };