From 18f863a784056ab0ac300a1f3f53ec0081af4091 Mon Sep 17 00:00:00 2001 From: Mike Barrett Date: Sun, 23 Dec 2012 16:22:23 +0000 Subject: [PATCH] remove window useage + change iife method --- timestring.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/timestring.js b/timestring.js index fc1dee1..e452ec1 100644 --- a/timestring.js +++ b/timestring.js @@ -1,8 +1,8 @@ -!function(window){ +(function(){ "use strict"; - window.Timestring = function(settings) { + this.Timestring = function(settings) { // default settings var defaults = { hoursPerDay: 24, @@ -99,4 +99,4 @@ return (new Timestring(settings)).parse(this, unit); } -}(window); +}).call(this);