Skip to content

Instantly share code, notes, and snippets.

@dikmax dikmax/test.js
Created Aug 17, 2012

Embed
What would you like to do?
Test compactness
NewClass = Class.extend("OptionalDisplayName", {
constructor: function () {},
properties: {
property1: {set: true, get: true, initial: 'Initial value'},
property2: {get: function () { return true; }}
},
statics: {
staticField1: null,
staticMethod1: function(arg1) {return arg1;},
properties: {
staticProperty1: {get: true, set: true}
}
},
field1: null,
method1: function() {}
});
NewClass2 = NewClass.extend({
constructor: function () { this.inherited(); },
method1: function() { this.inherited(); },
method2: function() {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.