Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
e7dec3cc
Commit
e7dec3cc
authored
Mar 21, 2013
by
Julien Cigar
Browse files
uses {} instead of new Object(), it's faster
parent
3609e473
Changes
1
Show whitespace changes
Inline
Side-by-side
core.js
View file @
e7dec3cc
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
;(
function
(
ns
)
{
;(
function
(
ns
)
{
var
Yeti
=
ns
.
Yeti
=
new
Object
()
;
var
Yeti
=
ns
.
Yeti
=
{}
;
/* Simple URL cleaner */
/* Simple URL cleaner */
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
Str
Str
************************************************************************/
************************************************************************/
Yeti
.
Str
=
new
Object
()
Yeti
.
Str
=
{};
/* Yeti.Str.reverse
/* Yeti.Str.reverse
* Returns the string reversed.
* Returns the string reversed.
...
@@ -312,7 +312,7 @@
...
@@ -312,7 +312,7 @@
JSON
JSON
************************************************************************/
************************************************************************/
Yeti
.
JSON
=
new
Object
()
;
Yeti
.
JSON
=
{}
;
/* Yeti.JSON.parse
/* Yeti.JSON.parse
* Parses a string as JSON and returns the parsed value.
* Parses a string as JSON and returns the parsed value.
...
@@ -333,7 +333,7 @@
...
@@ -333,7 +333,7 @@
Event
Event
************************************************************************/
************************************************************************/
Yeti
.
Evt
=
new
Object
()
;
Yeti
.
Evt
=
{}
;
/* Yeti.Evt.preventDefault
/* Yeti.Evt.preventDefault
* Cancels the event if it is cancelable, without stopping further
* Cancels the event if it is cancelable, without stopping further
...
@@ -384,7 +384,7 @@
...
@@ -384,7 +384,7 @@
DOM
DOM
************************************************************************/
************************************************************************/
Yeti
.
DOM
=
new
Object
()
;
Yeti
.
DOM
=
{}
;
/* Yeti.DOM.importNode
/* Yeti.DOM.importNode
* Creates a copy of a node from an external document that can be
* Creates a copy of a node from an external document that can be
...
@@ -637,7 +637,7 @@
...
@@ -637,7 +637,7 @@
Tools
Tools
************************************************************************/
************************************************************************/
Yeti
.
Tools
=
new
Object
()
;
Yeti
.
Tools
=
{}
;
/* Yeti.Tools.typeOf
/* Yeti.Tools.typeOf
* Returns a detailed text of the constructor
* Returns a detailed text of the constructor
...
...
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