Created
April 20, 2019 17:39
-
-
Save lethern/e9a5baded38f5d206742652d91452210 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLASSES.FIELD_BASIC_INPUT = function () { }; | |
copy( CLASSES.FIELD_BASIC_INPUT, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_BASIC_INPUT_proto]); | |
CLASSES.FIELD_BASIC_TEXTAREA = function () { }; | |
copy( CLASSES.FIELD_BASIC_TEXTAREA, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_BASIC_TEXTAREA_proto]); | |
CLASSES.FIELD_BASIC_LABEL = function () { }; | |
copy( CLASSES.FIELD_BASIC_LABEL, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_BASIC_LABEL_proto]); | |
CLASSES.FIELD_CHECKBOX = function () { }; | |
copy( CLASSES.FIELD_CHECKBOX, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_CHECKBOX_proto]); | |
CLASSES.FIELD_BUTTON = function () { }; | |
copy( CLASSES.FIELD_BUTTON, | |
[FIELD_BASIC_proto, FIELD_DOM_proto, FIELD_BUTTON_proto]); | |
CLASSES.FIELD_DDL = function () { }; | |
copy(CLASSES.FIELD_DDL, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_DDL_proto]); | |
CLASSES.FIELD_TABLE = function () {}; | |
copy( CLASSES.FIELD_TABLE, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_TABLE_proto] ); | |
CLASSES.FIELD_TABLE_DICT = function () { }; | |
copy( CLASSES.FIELD_TABLE_DICT, | |
[FIELD_BASIC_proto, FIELD_VALUE_proto, FIELD_DOM_proto, FIELD_TABLE_proto, FIELD_TABLE_DICT_proto]); | |
function copy(_class, inherit_arr) { | |
for (var it1 in inherit_arr) { | |
var inherit = inherit_arr[it1]; | |
for (var it2 in inherit) { | |
var method = inherit[it2]; | |
if (method._static) { | |
_class[it2] = method; | |
} else { | |
_class.prototype[it2] = method; | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment