Skip to content

Instantly share code, notes, and snippets.

@NN---
Created February 4, 2014 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NN---/8799708 to your computer and use it in GitHub Desktop.
Save NN---/8799708 to your computer and use it in GitHub Desktop.
// Dummy - Define ctor
var Dummy$ctor = {};
// Dummy - Constructors body
Dummy$ctor[""] = function() {}
// Dummy - Init
function Dummy() {
var _nw_self = this;
// Dummy - Properties
// Dummy - Methods
// Dummy - Fields
// Dummy - Call constructor
Dummy$ctor[arguments[0]].apply(this, Array.prototype.slice.call(arguments, 1
))
// Dummy - Defined properties
// Dummy - Defined methods
// Dummy - SignalR
if(window["Dummy_signalr"]) {
Dummy_signalr(_nw_self);
}
// Dummy - Meta
_nw_self.__nweb_meta = {
properties: [],
fields: [],
methods: []
};
// Dummy - Return
}
// Dummy - Static methods
// Dummy - Static properties
// Dummy - Static fields
Dummy.StaticFieldWithInit = null;
Dummy.StaticField = null;
Dummy.StaticFieldWithInit = "Passed"
// Test - Define ctor
var Test$ctor = {};
// Test - Constructors body
Test$ctor[""] = function() {}
// Test - Init
function Test() {
var _nw_self = this;
// Test - Properties
// Test - Methods
// Test - Fields
// Test - Call constructor
Test$ctor[arguments[0]].apply(this, Array.prototype.slice.call(arguments, 1)
)
// Test - Defined properties
// Test - Defined methods
// Test - SignalR
if(window["Test_signalr"]) {
Test_signalr(_nw_self);
}
// Test - Meta
_nw_self.__nweb_meta = {
properties: [],
fields: [],
methods: []
};
// Test - Return
}
// Test - Static methods
// Test - Static properties
// Test - Static fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment