Bind content and events to the DOM and create DOM Elements.
- transferred module to the new jxMono organization
- updated Utils to
v0.2.0
- Updated to
[email protected]
- properly set Array values
- removed
contructor.name
for IE compatibility
- Updated to
[email protected]
- added util library as dependecy
- added
prop
feature in Bind
- fixed the
return
problem introduced inv0.1.7
withobj.hasOwnProperty
- fixed more IE8 issues
- added option to prevent sending the DOM event to the handler/emit in the
on
bind configuration:
{
"target": ".myButton",
"on": [{
"name": "click",
"handler": "thisHandlerDoesNotReceiveTheEvent",
"noEvent": true
}]
}
- added "if (!obj.hasOwnProperty(key)) return;" to object for loops
- removed unused file filters.js
- send event variable from event handler as first parameter from
args
array - call anonymous and private functions
var binds = [{
"target": ".myElement",
"on": [{
"name": "click",
"handler": function () {
alert("I am here only in Bind v0.1.6 and higher.");
}
}]
}];
// run binds
- the filters now receive the original value (not a string representation of it)
- the
html
bind object will convert values to strings andundefined
andnull
to empty strings
- added delegated event support in the
on
bind configuration:
{
"target": ".myDynamicAddedElement",
"on": [{
"name": "click",
"handler": "myHandler",
"delegated": true
}]
}
- Fixed major issue in handling functions with arguments.
- added global namespaced function support:
{
"target": ".myClass",
"on": [{
"name": "click",
"handler": "global.function.name"
}]
}
where global.function.name
can be either a module namespaced function or a global namesaced function
- added
args
support foron
handlers:
{
"target": ".myClass",
"on": [{
"name": "click",
"handler": {
"name": "globalFunctionName",
"args": ["an argument"]
}
}]
}
The dataContext
will be appended to the given argument array.
- added default value support in
source
value computations:
{
"html": {
"source": "key.from.data.context",
"default": "default value if the source is not found"
}
}