diff options
author | Ondrej Zara <ondrej.zara@firma.seznam.cz> | 2015-06-12 13:11:35 +0200 |
---|---|---|
committer | Ondrej Zara <ondrej.zara@firma.seznam.cz> | 2015-06-12 13:11:35 +0200 |
commit | 097b9e89c95e4de2c184f40a1e8ef5e05bda9ddc (patch) | |
tree | 4932604432d1a57d3c4933ed80337f388fa70f53 /js/key.js | |
parent | 6fb6ba452f2bd616b6fe8d2edd0273e63b6e3f62 (diff) | |
download | wwwsqldesigner-097b9e89c95e4de2c184f40a1e8ef5e05bda9ddc.zip wwwsqldesigner-097b9e89c95e4de2c184f40a1e8ef5e05bda9ddc.tar.gz wwwsqldesigner-097b9e89c95e4de2c184f40a1e8ef5e05bda9ddc.tar.bz2 |
no more OZ.Class(), dedicated pubsub, std bind
Diffstat (limited to 'js/key.js')
-rw-r--r-- | js/key.js | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |