Director Javascript Library (Document! X Sample)
(Global) Namespace / Router type / insertEx Method
Method to insert the specific `route`.
Parsed path to insert the `route` at.
Route handlers to insert.
Parent "routes" to insert into.
In This Topic
    insertEx Method
    In This Topic
    insert a callback that will only occur once per the matched route.
    Syntax
    var instance = new Router();
    
    // Parameters
    var method; // Type:  String
    var path; // Type:  Array
    var route; // Type:  Array
    var parent; // Type:  Object
    
    instance.insertEx(method, path, route, parent);
    function insertEx( 
       method : String,
       path : Array,
       route : Array,
       parent : Object
    ) : void;

    Parameters

    method
    Method to insert the specific `route`.
    path
    Parsed path to insert the `route` at.
    route
    Route handlers to insert.
    parent
    Parent "routes" to insert into.
    Browser Compatibility
    8
    5
    5
    See Also

    Reference

    Router type