diff --git a/docs/files.html b/docs/files.html index 4c726cc..3a702c6 100755 --- a/docs/files.html +++ b/docs/files.html @@ -1 +1 @@ -
Global namespace.
Global namespace.
Defined in: DOM.js.
string | class |
string | class |
string?, Default: | type |
string | name | |
string?, Default: | value |
string |
string?, Default: | value |
string |
string | property | |
string?, Default: | value |
string |
$_("ul").dom.append("<li></li>") adds an li element to the end of the selected ul element
string | htm |
Defined in: DOM.js.
string | class |
string | class |
string?, Default: | type |
string | name | |
string?, Default: | value |
string |
string?, Default: | value |
string |
string | property | |
string?, Default: | value |
string |
$_("ul").dom.append("<li></li>") adds an li element to the end of the selected ul element
string | htm |
Defined in: event.js.
Eg. $_("#selector").event.add("click", do_something());
string | event | |
function | callback |
Eg. $_("#selector").event.remove("click", do_something());
string | event | |
string | callback |
Defined in: event.js.
Eg. $_("#selector").event.add("click", do_something());
string | event | |
function | callback |
Eg. $_("#selector").event.remove("click", do_something());
string | event | |
string | callback |
Defined in: core.js.
Defined in: store.js.
string | selector | |
object | context |
object |
string | name | |
object | obj |
function | callback |
mixed | obj |
string |
Defined in: ajax.js.
string | url | |
object | data | |
function | callback |
Defined in: ajax.js.
string | url | |
object | data | |
function | callback |
Defined in: core.js.
Defined in: store.js.
string | selector | |
object | context |
object |
string | name | |
object | obj |
function | callback |
mixed | obj |
string |
Defined in: ajax.js.
string | url | |
object | data | |
function | callback |
Defined in: ajax.js.
string | url | |
object | data | |
function | callback |
Defined in: store.js.
string | key | |
bool | session |
object |
string | key | |
mixed | value | |
bool | session |
string | key | |
bool | session |
Defined in: store.js.
string | key | |
bool | session |
object |
string | key | |
mixed | value | |
bool | session |
string | key | |
bool | session |
Defined in: template.js.
string | template_name | |
object | replace_data |
string |
string | parsed_template/template_name | |
string?, Default: | url | |
object?, Default: | data |
Defined in: template.js.
string | template_name | |
object | replace_data |
string |
string | parsed_template/template_name | |
string?, Default: | url | |
object?, Default: | data |
Defined in: util.js.
object |
array |
object |
array |
array/object | keys | |
array/object | vals |
object |
object | [as many as you wish to combine] |
object |
string | input_string | |
mixed | from (string)/replace pairs (object) | |
string?, Default: |
string |
Defined in: util.js.
object |
array |
object |
array |
array/object | keys | |
array/object | vals |
object |
object | [as many as you wish to combine] |
object |
string | input_string | |
mixed | from (string)/replace pairs (object) | |
string?, Default: |
string |
1 /** - 2 * Module for simplifying Indexed DB access - 3 */ - 4 (function() { - 5 "use strict"; - 6 - 7 var db = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB, - 8 indexedDB = {}; - 9 - 10 //Well, some browsers don't support it yet - 11 if(typeof db === "undefined") - 12 { - 13 return; - 14 } - 15 - 16 /** - 17 * Module for simplifying Indexed DB access - 18 * - 19 * @namespace - 20 * @name indexedDB - 21 * @memberOf $_ - 22 */ - 23 indexedDB = { - 24 current_db: null, - 25 /** - 26 * Connects to an indexedDB database - 27 * - 28 * @memberOf $_.indexedDB - 29 * @name connect - 30 * @function - 31 * @param string dbname - 32 * @param [int] version - 33 * @param [function] onupgradeneeded - 34 */ - 35 connect: function(dbname, version, onupgradeneeded) - 36 { - 37 var request = {}; - 38 - 39 version = version || 0; - 40 - 41 // Ask for permission to use db - 42 request = db.open(dbname, version); - 43 - 44 // Assign onupgradeneeded callback - 45 if(typeof onupgradeneeded !== "undefined") - 46 { - 47 request.onupgradeneeded = onupgradeneeded; - 48 } - 49 - 50 /** - 51 * @private - 52 */ - 53 request.onerror = function(event) - 54 { - 55 console.log("IndexedDB disallowed."); - 56 }; - 57 - 58 /** - 59 * @private - 60 */ - 61 request.onsuccess = function(event) - 62 { - 63 // Connect to the specified db - 64 indexedDB.current_db = request.result; - 65 }; - 66 } - 67 }; - 68 - 69 $_.ext('indexedDB', indexedDB); - 70 - 71 }());\ No newline at end of file diff --git a/kis-all.js b/kis-all.js index 55dc98b..b62d443 100755 --- a/kis-all.js +++ b/kis-all.js @@ -1180,80 +1180,6 @@ if (typeof document !== "undefined" && !("classList" in document.createElement(" // -------------------------------------------------------------------------- -/** - * Module for simplifying Indexed DB access - */ -(function() { - "use strict"; - - var db = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB, - indexedDB = {}; - - //Well, some browsers don't support it yet - if(typeof db === "undefined") - { - return; - } - - /** - * Module for simplifying Indexed DB access - * - * @namespace - * @name indexedDB - * @memberOf $_ - */ - indexedDB = { - current_db: null, - /** - * Connects to an indexedDB database - * - * @memberOf $_.indexedDB - * @name connect - * @function - * @param string dbname - * @param [int] version - * @param [function] onupgradeneeded - */ - connect: function(dbname, version, onupgradeneeded) - { - var request = {}; - - version = version || 0; - - // Ask for permission to use db - request = db.open(dbname, version); - - // Assign onupgradeneeded callback - if(typeof onupgradeneeded !== "undefined") - { - request.onupgradeneeded = onupgradeneeded; - } - - /** - * @private - */ - request.onerror = function(event) - { - console.log("IndexedDB disallowed."); - }; - - /** - * @private - */ - request.onsuccess = function(event) - { - // Connect to the specified db - indexedDB.current_db = request.result; - }; - } - }; - - $_.ext('indexedDB', indexedDB); - -}()); - -// -------------------------------------------------------------------------- - /** * Store * diff --git a/kis-min.js b/kis-min.js index 5f438af..ed1be6a 100755 --- a/kis-min.js +++ b/kis-min.js @@ -1,26 +1,25 @@ -(function(){if("undefined"!==typeof document.querySelector){var g,f,d,b;g=function(a){b="undefined"===typeof a?"undefined"!==typeof g.el?g.el:document.documentElement:"object"!==typeof a?f(a):a;g.prototype.el=b;var a=d(g),c;for(c in a)"object"===typeof a[c]&&(a[c].el=b);a.el=b;return a};f=function(a,c){var b;if("string"!=typeof a||"undefined"===typeof a)return a;b=null!=c&&1===c.nodeType?c:document;if(a.match(/^#([\w\-]+$)/))return document.getElementById(a.split("#")[1]);b=b.querySelectorAll(a); -return 1===b.length?b[0]:b};d=function(a){var c;if("undefined"!==typeof a){if("undefined"!==typeof Object.create)return Object.create(a);c=typeof a;if(!("object"!==c&&"function"!==c))return c=function(){},c.prototype=a,new c}};g.ext=function(a,c){c.el=b;g[a]=c};g.ext("each",function(a){if("undefined"!==typeof b.length&&b!==window){var c=b.length;if(0!==c)for(var e,d=0;d