Methods
Function ng.PlugIn.remove ()
vs. 1.1.0 Full+LiteRemoves the plugin and all it's properties. This method will also remove any HTML Elements that are associated with the plugin.
Function ng.PlugIn.create_options (
options,
default)
vs. 1.1.2 Full+LiteCreate the initial options for the plugin. This method doesn not alter the plugin variables, but return an object that can be assigned to a variable in the plugin.
Function ng.PlugIn.get (
prop)
vs. 1.2.2 Full+LiteGets the plugin property. This method will check if there is a getter function for the plugin and return it's value, otherwise it'll return the raw property. This method is useful for getting custom properties.
Function ng.PlugIn.set (
prop,
value)
vs. 1.2.2 Full+LiteSets the plugin property. This method will check if there is a setter method for the plugin and call it. Otherwise, it will set the raw property value.This method is useful for setting custom properties.
ng.Events () Methods
Some of these methods might be overriden by the inheriting class.Function ng.Events.add_event (
evt,
func)
vs. 1.1.0 Full+LiteThe add_event method will attach an event listener to an object. When the event is fired, the listeners functions will be executed on last added first run approach.
Function ng.Events.remove_event (
evt,
func)
vs. 1.1.0 Full+LiteRemove the function func from the event evt queue. When adding the event, you should add the function by reference. Anonymous functions cannot be removed.
Function ng.Events.fire_event (
evt_nm,
args,
evt)
vs. 1.1.0 Full+LiteExecutes all the functions in the event evt_nm queue. Functions are executed in lasted added first exectued order.