Releases: trillobite/jsonHTML
Release list
v0.9.9.1 - Beta!
Been using this version for quite a while, just decided to make it as a release.
Main change is the ability to use sig() as a shorthand for $jConstruct().
Typing sig() with no inputs creates a "vanilla" div, with no properties, for in case you just need a container to add other objects.
v0.9.6.1-beta
OUPS! There was a bug in toadFish. Most would probably not notice it, I got my 'row' and 'columns' mixed up! I did update the example code some more... so have fun!
v0.9.6-beta
Now includes micronDB, and toadFish. Some documentation can be found, but it may still be in the works. So far, with my testing, everything has been stable. I cannot see any incompatibilities.
Be aware that the syntax for toadFish may change in the next version, it's use should be experimental, although it seems to run stable without any issues.
v0.9.5-beta
Added a few features:
Support for a virtually unlimited number of HTML objects.
Each $jConstruct object has a jQuery deferred, "object.status.done(function(){/do stuff/});" so you can know when it is done being appended to the DOM.
Can now append objects in many different ways.
The refresh() function has been updated, and remembers how it has been appended to the DOM.
v0.9-beta
There are no known incompatibilities going from v0.8 to v0.9-beta.
The Refresh function has been added to make it easier to manipulate the properties of a jsonHTML object, and make those changes appear on the browsers screen almost immediately.
v0.8-beta
Incompatibilities between v0.7.x and v0.8.x+
In order to allow the user to gain lower access to the native jQuery functionality, I have decided to allow the .appendTo function to return a jQuery.Deferred() object. It should not affect any code already written in v0.7.x as nobody should have attempted to chain another function behind appendTo(), as anything chained behind .appendTo() would have done nothing on the DOM anyways. The v8 engine will now throw an error in the javaScript Console if the user has incorrectly done chaining in the previously explained way. The positive aspect to this, is that chaining is actually more useful, you can detect when the object is done being appended to the DOM by simply adding .done(). In this way you can add a function which you want to execute after the object has been appended to the DOM: "$jConstruct('div').appendTo('body').done(function() { console.log('now added to the DOM')});" Before this functionality was added, one would have to use the .addFunction() method in order to execute a function after the object has been rendered to the DOM, this functionality is basically useless, and quite possibly may become depricated.
v0.7.2-beta
A few bug fixes for v0.7
Fixed bug: Adding an event during object creation, would cause that event to never be appended to the object.
Fixed bug: Changing the styling of an object after creation, while it is rendered on the DOM, would cause that object on the DOM to never change the styling.
v0.7-beta.1
For the sake of simplicity, and increasing the flexibility of jsonHTML it was determined that it is important to allow the user to append to any portion of the DOM. The user is now able to append to the body of the HTML directly by simply specifying 'body.' In order to do this properly, if you are to append to any div in the DOM, you have to specify it with the hash symbol '#.' Before you were able to simply type .appendTo('divID'), but now it is required to type .appendTo('#divID'), jQuery users should already be familiar with this, as it is a necessary method in order to use jQuery properly.
Additions in this release:
Implemented an easy way to handle events: on click, blur... etc...
Can append a jsonHTML object to a parent jsonHTML object, by passing the object directly, or by passing the parent objects ID.
Object DOM removal memory leak fix.
jsonHTML v0.6-beta.1
jQuery-like events have been added, can be implemented without having to declare an ID to the object, and can be called upon by function chaining, for example: $jConstruct('div').click(function(){//do stuff});
There has been a massive update on the documentation, all of the documentation for v0.5 is compatible. jQuery-like events are under testing right now, may be bugs.
Syntax Additions
A lot of new syntax has been added, and I have decided to make this the first release. One thing to note: This is not a version 1.0, the API may change rapidly, though, as far as I can tell, everything works as it should, and this release I would consider "Stable." I do not expect many more changes to the API, mostly I may change the name of calls in order to convey to the user exactly what it does in the least number of characters. You can think of jsonHTML like a code library or a compiler, everything eventually compiles down to HTML & jQuery.