Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
55f681cb
Commit
55f681cb
authored
Dec 08, 2011
by
Julien Cigar
Browse files
fix typo
parent
1b84e00d
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
55f681cb
/*
Yeti, a simple Javascript library
*/
;(
function
(
ns
)
{
var
Yeti
=
ns
.
Yeti
=
new
Object
();
...
...
@@ -115,6 +119,8 @@
Yeti
.
AjaxResponse
=
function
(
req
)
{
this
.
o
=
req
;
this
.
readyStates
=
[
'
uninitialized
'
,
'
loading
'
,
'
loaded
'
,
'
interactive
'
,
'
complete
'
];
}
Yeti
.
AjaxResponse
.
prototype
.
get_status
=
function
()
{
...
...
@@ -130,8 +136,7 @@
}
Yeti
.
AjaxResponse
.
prototype
.
get_state
=
function
()
{
return
[
'
uninitialized
'
,
'
loading
'
,
'
loaded
'
,
'
interactive
'
,
'
complete
'
][
this
.
o
.
readyState
]
||
'
unknown
'
;
return
this
.
readyStates
[
this
.
o
.
readyState
]
||
'
unknown
'
;
}
Yeti
.
AjaxResponse
.
prototype
.
success
=
function
()
{
...
...
@@ -188,13 +193,13 @@
}
else
if
(
el
.
attachEvent
)
{
/* In IE events always bubble, no capturing possibility. */
//el.attachEvent('on' + type, listener);
var
_type
=
'
on
'
+
type
;
if
(
el
[
'
on
'
+
type
]
==
null
)
{
el
[
'
on
'
+
type
]
=
listener
;
if
(
el
[
_
type
]
==
=
null
)
{
el
[
_
type
]
=
listener
;
}
else
{
var
_e
=
el
[
'
on
'
+
type
];
el
[
'
on
'
+
type
]
=
function
()
{
_e
();
listener
();
el
[
_type
]
=
function
()
{
el
[
_type
]();
listener
();
}
}
}
else
{
...
...
@@ -219,7 +224,7 @@
deep
=
true
;
}
return
do
u
cment
.
importNode
?
return
doc
u
ment
.
importNode
?
document
.
importNode
(
node
,
deep
)
:
(
function
(
node
,
deep
)
{
...
...
@@ -317,7 +322,8 @@
(
function
(
name
,
src
)
{
var
class_pattern
=
new
RegExp
(
"
(?:^|
\\
s)
"
+
name
+
"
(?:
\\
s|$)
"
),
class_elems
=
[],
selection
=
src
.
getElementsByTagName
(
'
*
'
);
selection
=
src
.
getElementsByTagName
(
'
*
'
)
;
for
(
var
i
=
0
,
_len
=
selection
.
length
;
i
<
_len
;
i
++
)
{
if
(
class_pattern
.
test
(
selection
[
i
].
className
))
{
...
...
@@ -351,11 +357,11 @@
Yeti
.
Tools
=
new
Object
();
/* Yeti.Tools.
text_
proto
_s
tr
/* Yeti.Tools.proto
S
tr
* Returns a detailed text of the constructor
*/
Yeti
.
Tools
.
proto
_s
tr
=
function
(
obj
)
{
Yeti
.
Tools
.
proto
S
tr
=
function
(
obj
)
{
return
Object
().
toString
.
call
(
obj
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment