Sha256: b091b914db45e3fb9b90769202016bad93d26ba1efa925d04fa31e8741ddb56e
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
{ onWithResponse: function(){ this.whatsUp(); }, onNoResponse: function(){ this.noResponse({}, function(){ this.setTitle('Successfully called endpoint with no response (this is a callback)'); }, this); }, onMultipleArguments: function(){ this.multipleArguments(); }, takeTwoArguments: function(first, second){ this.setTitle("Called a function with two arguments: " + first + ", " + second); }, onArrayAsArgument: function() { this.arrayAsArgument(); }, takeArrayAsArgument: function(arry) { var arryAsString = "['"+ arry.join("', '") + "']"; this.setTitle("Called a function with array as arguments: " + arryAsString); }, onCallbackAndScope: function(){ var that=this; var fancyScope={ setFancyTitle: function () { that.setTitle("Fancy title" + " set!"); } }; this.doNothing({}, function () { this.setFancyTitle(); }, fancyScope); }, onReturnValue: function() { this.getAnswer(null, function(answer) { this.setTitle("Returned value: " + answer); }, this); } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
netzke-core-0.8.3 | test/core_test_app/app/components/endpoints/javascripts/endpoints.js |
netzke-core-0.8.2 | test/core_test_app/app/components/endpoints/javascripts/endpoints.js |