Class Index | File Index

Classes


Built-In Namespace _global_

Field Summary
Field Attributes Field Name and Description
 
Creates an advice after the defined point-cut.
 
Creates an advice 'around' the defined point-cut.
 
Creates an advice before the defined point-cut.
 
Creates an introduction on the defined point-cut.
 
Configures global options.
Method Summary
Method Attributes Method Name and Description
 
 
Creates and returns a new ScriptBot instance.
 
 
fn()
 
html2dom(html, doc)
 
html2xml(html)
Field Detail
{Array} after
Creates an advice after the defined point-cut. The advice will be executed after the point-cut method has completed execution successfully, and will receive one parameter with the result of the execution. This function returns an array of weaved aspects (Function).
Defined in: </ScriptBot/trunk/src/app/dom.js>.
jQuery.aop.after( {target: window, method: 'MyGlobalMethod'}, function(result) { alert('Returned: ' + result); } );
jQuery.aop.after( {target: String, method: 'indexOf'}, function(index) { alert('Result found at: ' + index + ' on:' + this); } );

{Array} around
Creates an advice 'around' the defined point-cut. This type of advice can control the point-cut method execution by calling the functions '.proceed()' on the 'invocation' object, and also, can modify the arguments collection before sending them to the function call. This function returns an array of weaved aspects (Function). Matches all global methods starting with 'Get' and followed by a number.
Defined in: </ScriptBot/trunk/src/app/dom.js>.
jQuery.aop.around( {target: window, method: 'MyGlobalMethod'}, function(invocation) {
               alert('# of Arguments: ' + invocation.arguments.length); 
               return invocation.proceed(); 
         } );
jQuery.aop.around( {target: String, method: 'indexOf'}, function(invocation) { 
               alert('Searching: ' + invocation.arguments[0] + ' on: ' + this); 
               return invocation.proceed(); 
         } );
jQuery.aop.around( {target: window, method: /Get(\d+)/}, function(invocation) {
               alert('Executing ' + invocation.method); 
               return invocation.proceed(); 
         } );

{Array} before
Creates an advice before the defined point-cut. The advice will be executed before the point-cut method but cannot modify the behavior of the method, or prevent its execution. This function returns an array of weaved aspects (Function).
Defined in: </ScriptBot/trunk/src/app/dom.js>.
jQuery.aop.before( {target: window, method: 'MyGlobalMethod'}, function() { alert('About to execute MyGlobalMethod'); } );
jQuery.aop.before( {target: String, method: 'indexOf'}, function(index) { alert('About to execute String.indexOf on: ' + this); } );

{Array} introduction
Creates an introduction on the defined point-cut. This type of advice replaces any existing methods with the same name. To restore them, just unweave it. This function returns an array with only one weaved aspect (Function).
Defined in: </ScriptBot/trunk/src/app/dom.js>.
jQuery.aop.introduction( {target: window, method: 'MyGlobalMethod'}, function(result) { alert('Returned: ' + result); } );
jQuery.aop.introduction( {target: String, method: 'log'}, function() { alert('Console: ' + this); } );

{Void} setup
Configures global options. Disable regex matching.
Defined in: </ScriptBot/trunk/src/app/dom.js>.
jQuery.aop.setup( { regexMatch: false } );
Method Detail
aspect()

Defined in: </ScriptBot/trunk/src/app/dom.js>.

{ScriptBotCore} createBot()
Creates and returns a new ScriptBot instance.
Defined in: </ScriptBot/trunk/src/app/scriptbot.js>.
Since:
2.0.1
Returns:
A new bot instance.

Envjs()

Defined in: </ScriptBot/trunk/src/app/dom.js>.
Author: thatcher.

fn()

Defined in: </ScriptBot/trunk/src/app/dom.js>.

html2dom(html, doc)

Defined in: </ScriptBot/trunk/src/app/dom.js>.
Parameters:
html
doc

html2xml(html)

Defined in: </ScriptBot/trunk/src/app/dom.js>.
Parameters:
html

Documentation generated by JsDoc Toolkit 2.1.1 on Thu May 06 2010 18:41:45 GMT-0700 (PDT)