This functionality is now provided by BladeRunnerJS, and this proxy method will be removed from CaplinTrader in a future release. Please update any references to this method in your code.
Registers a global listener for mouse scroll events.
This method is used rather than module:caplin/dom/Utility#addEventListener since the registration of mouse scroll events differs in IE, Opera, and standards compliant browsers. Furthermore, the event parameter passed through as the first parameter to scrollListener can be relied upon to exist, even in IE, and has been pre-normalized using the module:caplin/dom/event/Event#getNormalizedEvent method, since the format of the scroll detail differs so widely.
Creates an event listener (a function pointer) that allows a method to be called on an object when that event is fired.
Normal event listeners are function pointers which make object-oriented programming difficult. The function pointer returned by this method merely calls the desired method on the specified object so that the this pointer is still available.
Each time an event occurs where this event listener has been attached, the method will be called with a single event parameter, event, which is the browser event object. Optionally, if staticArguments is provided then the arguments within this array will be appended to the method parameters for each method call.
The last object passed into the callback method method will be the DOM element which triggered the event firing, for example, the button that was clicked or hovered over.
obj Object the object the method will be called on.
The arguments that, if provided, will be appended as parameters to the given method.
The event function that will invoke the method on the specified class once the event is fired.
Computes current style of a DOM Element, converting it to pixels where appropriate.
element DOMElement Element to get style for.
styleName String Css style name. IE. border-width.
value with unit, to get the value only use parseInt.
Returns the last child element that contains the specified CSS class.
parentElement DOMElement The parent to use as the root.
className String The class of the wanted last child element.
The last child element or null.
Returns the mouse position for the specified event.
Returns the computed current width of scrollBar.
Determines whether the event is the equivalent of the microsoft mouseleave or mouseenter events. This method assumes the event being passed is a mouseout or mouseenter and has undefined results if this isn't the case.
event Event A mouseover or mouseout event object.
element Element The element we want to test against for mouseenter/mouseleave.
True if the event is either a mouse leave or enter event.
Removes the specified event listener function from the element.
targetElem Element The element to remove the event from.
eventName String The name of the event to remove the listener from.
eventListener function The event listener to remove.
module:caplin/dom/Utility.removeEventListenerById to remove an event listener.