diff --git a/README.md b/README.md index af4a4da..aa5fd10 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,19 @@ Browser support: IE8+, Latest versions of Firefox, Chrome, Safari, Opera functions: - *each: For applying changes to every item matched by a selector + * each: For applying changes to every item matched by a selector Use: $_(selector).dom.each(callback); Example : $_(".foo").dom.each(function(e){ $_(e).dom.text(value); }): + + * ext: For extending the library, adds this.el to the object or function supplied + Use: $_.ext("name", functionOrObject) + + Example: $_.ext("zip", function(){ //function }); + Adds 'zip' function to $_. **Ajax**: simple, jQuery-like ajax functions diff --git a/kis.js b/kis.js index 5d4573a..d685380 100644 --- a/kis.js +++ b/kis.js @@ -166,13 +166,15 @@ }; } - // -------------------------------------------------------------------------- }()); +// -------------------------------------------------------------------------- + (function(){ "use strict"; + //Fix $_ is not defined errors var $_ = $_ || window.$_; // Property name for expandos on DOM objects