We strive to make the Prime.js API as consistent as possible. Our functions only ever have one return type and one set of parameters.
Denver, CO (PRWEB) June 13, 2013
Inversoft's CEO, Brian Pontarelli shares, "We strive to make the Prime.js API as consistent as possible. Functions only have one return type and one set of parameters."
There's no need to use the same function to get and set variables. Instead, Prime.js uses explicit functions for each, consistent naming rules for functions whenever possible and makes function parameters and return types consistent.
1. new Prime.Ajax.Request(‘/foo.js’).
Prime.js allows control of the 'this' variable whenever possible. This means it can use one's own objects as event listeners or callbacks and the 'this' variable will be set to those objects.
Under the hood, Prime.js uses the excellent Sizzle selector engine. This is the same engine used by jQuery, which means that developers familiar with the jQuery style of selecting will be able to jump right into using Prime.js.
Prime.js is also fully documented using JSDoc. Many IDEs can use JSDoc to provide good intelli-sense as well as pop-up documentation. It also allows documents to be generated on the Prime.js website.
Finally, Prime.js was built to be easily debuggable in the browser. Therefore, every function, namespace and object is explicit. There is no need to generate code or eval anything. Those who run against the original source code for Prime.js will be able to step into any of the objects and functions.
Inversoft encourages developers to test out Prime.js and give thoughts and feedback.