From d15594ce98f69674217dbb02afdc3cf4b7628d01 Mon Sep 17 00:00:00 2001
From: echicken <>
Date: Wed, 11 Jan 2017 17:52:35 +0000
Subject: [PATCH] Added Frame.cleardata() method; resets Frame data array to
 [], invalidates Frame.

---
 exec/load/frame.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/exec/load/frame.js b/exec/load/frame.js
index 057000ccb8..497982e4f6 100644
--- a/exec/load/frame.js
+++ b/exec/load/frame.js
@@ -935,6 +935,10 @@ Frame.prototype.clear = function(attr) {
 	this.home();
 	return true;
 }
+Frame.prototype.cleardata = function () {
+	this.__properties__.data = [];
+	this.invalidate();
+}
 Frame.prototype.clearline = function(attr) {
 	if(attr == undefined)
 		attr = this.attr;
-- 
GitLab