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);