remove window useage + change iife method
This commit is contained in:
parent
473eadc8d7
commit
18f863a784
@ -1,8 +1,8 @@
|
|||||||
!function(window){
|
(function(){
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
window.Timestring = function(settings) {
|
this.Timestring = function(settings) {
|
||||||
// default settings
|
// default settings
|
||||||
var defaults = {
|
var defaults = {
|
||||||
hoursPerDay: 24,
|
hoursPerDay: 24,
|
||||||
@ -99,4 +99,4 @@
|
|||||||
return (new Timestring(settings)).parse(this, unit);
|
return (new Timestring(settings)).parse(this, unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
}(window);
|
}).call(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user