kivi.Part.js: clear Methode für Partpicker
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 10 Feb 2017 12:58:17 +0000 (13:58 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 13 Feb 2017 15:32:45 +0000 (16:32 +0100)
js/kivi.Part.js

index 4a55a17..ff3ce98 100644 (file)
@@ -493,6 +493,9 @@ namespace('kivi.Part', function(ns) {
         code.apply(this, args)
       else
         kivi.run(code, args);
+    },
+    clear: function() {
+      this.set_item({});
     }
   };
   ns.Picker.prototype.STATES = {