|
Oct 29 2008, 2:17 PM EDT
|
|
|
edit |
1 word added
1 word deleted
|
|
Change: overridadableoverridable function and an event handler? An event handler is traditionally identified in JavaScript with an oneventname naming convention. It is still common practice to assign events by following a syntax identical to that of overriding a function -- that is, object.oneventname = function(); The return
View changes from previous version.
(Word count: 405)
|
|
Oct 29 2008, 1:30 PM EDT
|
|
|
edit |
2 words added
2 words deleted
|
|
Change: overloadingoverriding a function -- that is, object.oneventname = function(); The return value of the function would determine whether or not the event would occur. Simple custom events for ordinary objects may be defined in this manner. Wetpaint Injected supports this paradigm while additionally supporting a deferred processing model
View changes from previous version.
(Word count: 405)
|
|
Oct 29 2008, 1:29 PM EDT
|
|
|
edit |
14 words added
14 words deleted
|
|
Change: overloadoverride a function in the client application?To overloadoverride a function, simply declare a new function with exactly the same signature as the function you wish to overload.override. For example, if you wanted to overloadoverride the WPCAPI.processLogin() function, you might write the following code:if(
View changes from previous version.
(Word count: 405)
|
|
Oct 29 2008, 1:28 PM EDT
|
|
|
rename |
No content added or deleted. |
|
Change: Renamed from Function Overloading by Oct 29 2008, 1:28 PM EDT for: Technically it's 'overriding' not 'overloading.'
|
|
Jun 30 2008, 6:08 PM EDT
|
|
|
edit |
2 words added
1 word deleted
|
|
Change: Wetpaint Injected public API function that explicitly supports overloading can defer processing.To support asynchronous operations in your overloaded function...Your overloaded function should return null.After your asynchronous operations are complete, call functionName_Callback(returnValue), where functionName is the name of the overloaded function and returnValue
View changes from previous version.
(Word count: 405)
|
|
Jun 4 2008, 3:34 PM EDT
|
|
|
edit |
8 words added
14 words deleted
|
|
Change: function in the BALCO public API,function, simply declare a new function with exactly the same signature as the function you wish to overload. For example, if you wanted to overload the WPCAPI.processLogin() function, you might write the following code:if( WPCAPI ) { WPCAPI.processLogin = function() {
View changes from previous version.
(Word count: 404)
|
|
Jun 2 2008, 7:39 PM EDT
|
|
|
edit |
8 words added
4 words deleted
|
|
Change: if(if( WPCAPI ) { WPCAPI.processLogin = function() { // Do stuff... }; }2. What is the difference between an overloadable function and an event handler? An event handler is traditionally identified in JavaScript with an oneventname naming convention. It is still
View changes from previous version.
(Word count: 410)
|
|
May 16 2008, 7:32 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 410)
|
|
May 6 2008, 2:38 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 410)
|
|
Apr 23 2008, 12:56 PM EDT
|
|
|
edit |
2 words added
1 word deleted
|
|
Change: for events (see #3 below). 3. Does BALCO support asynchronous function overloading?Yes! If you need to perform asynchronous operations in an overloaded function (e.g: AJAX requests to your server, wait for some event to be fired, etc), you have the option to defer processing until your
View changes from previous version.
(Word count: 410)
|
|
Apr 21 2008, 1:05 PM EDT
|
|
|
edit |
2 words added
1 word deleted
|
|
Change: + encodeURIComponent(title); data += "&message=" + encodeURIComponent(message); var request = new XMLHttpRequest(); request.open( "/page/setTitle", "PUT" ); request.onreadystatechange = function() { if( request.readyState == 4 ) {// Allow the page rename only with a success response... WPCAPI.onpagerename_Callback(WPCAPI.onpagerename_Callback( request.status == 200 );} }; request.send(data); }; }
View changes from previous version.
(Word count: 409)
|
|
Apr 18 2008, 9:05 PM EDT
|
|
|
move |
No content added or deleted. |
|
Change: Moved by Apr 18 2008, 9:05 PM EDT
|
|
Apr 18 2008, 9:05 PM EDT
|
|
|
edit |
433 words added
|
|
Change: Overloadable functions may have any return type and are not necessarily called for their approval on an operation. BALCO overloadable functions exist to allow new
View changes from previous version.
(Word count: 410)
|
|
Apr 18 2008, 7:43 PM EDT
|
|
|
move |
No content added or deleted. |
|
Change: Moved by Apr 18 2008, 7:43 PM EDT
|
|
Apr 18 2008, 7:42 PM EDT
|
|
|
create |
No content added or deleted. |
|
Change: Created by Apr 18 2008, 7:42 PM EDT for: no reason given
|