'WrapperTracer' (Class JS) - Analysis and 'JS Objects' Traces.
Library: 'PolyArea'.
Author: Juan José Guerra Haba - dinertron@gmail.com - Marzo de 2016
License: Free BSD. & Open GPL v.3. Keep credit, please.
Versión: 1.0.0 BETA
File: WrapperTracer.js Main Class: WrapperTracer.js
WrapperTracer
It is a class that creates Javascript wrapper objects to allow tracking of the executed methods.
It serve of TRACER to obtain a visual representation of methods's execution cycle, as help with information (elapsed time, nesting, methods type, parameters, ...).
This class relies heavily on the utility functions of an internal object implemented in the same file, the 'Util' object, which contains methods and objects statics that although they are geared specifically for object 'wrapper', they could be used outside the same using his 'classpath'.
Features
- Do not in any way alter the original object
- Fully OOP
- Cross-browser
- Philosophy MVC
- Reduction to minimum of code to use by the user.
Usage
Simply call the constructor with two parameters: The object tracking and DOMElement container element that will house the results for the GUI. The container element parameter can be a string containing the element id. Ej:
var wrapped = new WrapperTracer(obj1, "containerUI");
Of course you must be loaded before the script in the HTML header.
<script type="text/javascript" src="WrapperTracer.js"></script>
Public API
- Constructor
- WrapperTracer (object, idElement, callback);
- Getters
- getId ();
- getTarget ();
- getWrapped ();
- getCallback ();
- getProps ();
- getInfo ();
- getContainer ();
- getUtil ()
- Setters
- setContainer (idElement);
Authoring
Created and developed entirely by GuerraTron
Copyright 2016 © Juan José Guerra Haba
License GPL v3
« I hope it can be useful to someone as it has been for me. In this case it would be appreciated email commenting use or suggestions for future improvements.
¡ KEEP CREDITS, PLEASE ! »
Developing & Tools
Created with Nodeclipse
(Eclipse Marketplace, site)
Nodeclipse is free open-source project that grows with your contributions.
Debug by Firefox + Firebug
Additional editing and cleaning with Notepad++