'WrapperTracer' (Class JS) - Analysis and 'JS Objects' Traces.
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
It is a class that creates Javascript wrapper objects to allow tracking of the executed methods.
- 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.
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>
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'.
- Constructor
- WrapperTracer (object, idElement, callback);
- Getters
- getId ();
- getTarget ();
- getWrapped ();
- getCallback ();
- getProps ();
- getInfo ();
- getContainer ();
- getUtil ()
- Setters
- setContainer (idElement);
Created and developed entirely by Juan Jose Guerra Haba. <dinertron@gmail.com>
Copyright 2015 © GuerraTron
License GPL v3
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 withNotepad++