Commit e7dec3cc authored by Julien Cigar's avatar Julien Cigar
Browse files

uses {} instead of new Object(), it's faster

parent 3609e473
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment