Re-added console.log polyfill, fixed dom.attr return value for getting
This commit is contained in:
parent
c8d8d16a7e
commit
1316ac4b32
15
kis.js
15
kis.js
@ -18,6 +18,14 @@
|
||||
return;
|
||||
}
|
||||
|
||||
//Define console.log dummy function if it doesn't exist
|
||||
if(typeof window.console === "undefined")
|
||||
{
|
||||
window.console = {
|
||||
log: function(){}
|
||||
};
|
||||
}
|
||||
|
||||
var $_, $;
|
||||
|
||||
$_ = {};
|
||||
@ -495,7 +503,7 @@
|
||||
: sel[name] = null;
|
||||
}
|
||||
|
||||
return (typeof value !== "undefined") ? value : oldValue;
|
||||
return (typeof value !== "undefined") ? value : oldVal;
|
||||
}
|
||||
|
||||
// Private function for class manipulation
|
||||
@ -583,10 +591,7 @@
|
||||
d = {
|
||||
each: function (sel, callback)
|
||||
{
|
||||
if (typeof sel === "string")
|
||||
{
|
||||
sel = $(sel);
|
||||
}
|
||||
sel = $(sel);
|
||||
|
||||
if(!sel.length)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user