summaryrefslogtreecommitdiffstats
path: root/js/key.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/key.js')
-rw-r--r--js/key.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/key.js b/js/key.js
index 3b39d42..c1eb8b2 100644
--- a/js/key.js
+++ b/js/key.js
@@ -1,14 +1,12 @@
/* --------------------- db index ------------ */
-
-SQL.Key = OZ.Class().extend(SQL.Visual);
-
-SQL.Key.prototype.init = function(owner, type, name) {
+SQL.Key = function(owner, type, name) {
this.owner = owner;
this.rows = [];
this.type = type || "INDEX";
this.name = name || "";
- SQL.Visual.prototype.init.apply(this);
+ SQL.Visual.apply(this);
}
+SQL.Key.prototype = Object.create(SQL.Visual.prototype);
SQL.Key.prototype.setName = function(n) {
this.name = n;