Skip to content

Commit

Permalink
Further browser trials
Browse files Browse the repository at this point in the history
  • Loading branch information
Xotic750 committed Dec 9, 2013
1 parent 17b7fdd commit 342f72a
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 159 deletions.
138 changes: 69 additions & 69 deletions docs/AstroDate.html

Large diffs are not rendered by default.

47 changes: 18 additions & 29 deletions docs/astrodate.js.html
Expand Up @@ -77,7 +77,9 @@ <h1 class="page-title">Source: astrodate.js</h1>
baseNumber = 0,
baseBoolean = true,
protoName = '__proto__',
toObject,
CtrBoolean = baseBoolean.constructor,
CtrNumber = baseNumber.constructor,
CtrString = baseString.constructor,
extend,
arrayIndexOf,
objectDefineProperty,
Expand Down Expand Up @@ -347,7 +349,7 @@ <h1 class="page-title">Source: astrodate.js</h1>

/**
* The abstract operation throws an error if its argument is a value that cannot be
* converted to an Object using toObject, otherwise returns the argument.
* converted to an Object using argToObject, otherwise returns the argument.
* @private
* @function
* @param {*} inputArg
Expand All @@ -370,32 +372,19 @@ <h1 class="page-title">Source: astrodate.js</h1>
* @param {*} inputArg
* @return {object}
*/
toObject = (function () {
// Unused variable for JScript NFE bug
// http://kangax.github.io/nfe/
var CtrBoolean = baseBoolean.constructor,
CtrNumber = baseNumber.constructor,
CtrString = baseString.constructor,
nfeToObject;

tempSafariNFE = function nfeToObject(inputArg, caller) {
var object = checkObjectCoercible(inputArg, 'toObject:' + caller);

if (isBoolean(object)) {
object = new CtrBoolean(object);
} else if (isNumber(object)) {
object = new CtrNumber(object);
} else if (isString(object)) {
object = new CtrString(object);
}

return object;
};

nfeToObject = null;
function argToObject(inputArg, caller) {
var object = checkObjectCoercible(inputArg, 'argToObject:' + caller);

if (isBoolean(object)) {
object = new CtrBoolean(object);
} else if (isNumber(object)) {
object = new CtrNumber(object);
} else if (isString(object)) {
object = new CtrString(object);
}

return tempSafariNFE;
}());
return object;
}

/**
* The abstract operation converts its argument to a value of type String
Expand Down Expand Up @@ -1395,7 +1384,7 @@ <h1 class="page-title">Source: astrodate.js</h1>
if (splitString &amp;&amp; isString(inputArg)) {
object = stringSplit(inputArg, '');
} else {
object = toObject.apply(null, arguments);
object = argToObject.apply(null, arguments);
}

return object;
Expand Down Expand Up @@ -29814,7 +29803,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 09 2013 15:53:14 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 09 2013 16:11:10 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Expand Up @@ -48,7 +48,7 @@ <h3> </h3>
<p><a href="https://coveralls.io/r/Xotic750/astrodate?branch=master" title="Coverage status on Coveralls"><img src="https://coveralls.io/repos/Xotic750/astrodate/badge.png?branch=master" alt="Coverage Status"></a></p>
<p><a href="https://ci.testling.com/Xotic750/astrodate" title="Browser support on Testling CI"><img src="https://ci.testling.com/Xotic750/astrodate.png" alt="browser support"></a></p>
<h1><a href="http://xotic750.github.io/astrodate/">AstroDate 0.6.5</a></h1>
<h6>Graham Fairweather <a href="&#x6d;&#x61;&#x69;&#108;&#116;&#x6f;&#58;&#120;&#x6f;&#x74;&#x69;&#99;&#x37;&#53;&#48;&#x40;&#103;&#x6d;&#x61;&#105;&#x6c;&#46;&#99;&#x6f;&#x6d;">&#120;&#x6f;&#x74;&#x69;&#99;&#x37;&#53;&#48;&#x40;&#103;&#x6d;&#x61;&#105;&#x6c;&#46;&#99;&#x6f;&#x6d;</a></h6>
<h6>Graham Fairweather <a href="&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x78;&#111;&#x74;&#105;&#x63;&#x37;&#x35;&#48;&#x40;&#103;&#x6d;&#x61;&#x69;&#x6c;&#x2e;&#x63;&#111;&#x6d;">&#x78;&#111;&#x74;&#105;&#x63;&#x37;&#x35;&#48;&#x40;&#103;&#x6d;&#x61;&#x69;&#x6c;&#x2e;&#x63;&#111;&#x6d;</a></h6>
<p>Still very much work in progress, so there are <a href="https://github.com/Xotic750/astrodate/issues" title="Issues">bugs</a> and the API has not been fully defined (or documented) and is subject to major changes.</p>
<p>The idea behind the project is to not rely on Javascript's rather flaky <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Date Object reference"><code>Date</code></a> object, give better accuracy, flexibility and be cross-browser.</p>
<p>Besides the standard <a href="http://en.wikipedia.org/wiki/Gregorian_calendar" title="Wikipedia">Gregorian calendar</a>, the <a href="http://en.wikipedia.org/wiki/Julian_calendar" title="Wikipedia">Julian calendar</a> is also available. This allows for AstroDate to be used in astronomical calculations.
Expand Down Expand Up @@ -136,7 +136,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 09 2013 15:53:14 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 09 2013 16:11:10 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/module-astrodate.html
Expand Up @@ -129,7 +129,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 09 2013 15:53:14 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 09 2013 16:11:10 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
45 changes: 17 additions & 28 deletions lib/astrodate.js
Expand Up @@ -50,7 +50,9 @@
baseNumber = 0,
baseBoolean = true,
protoName = '__proto__',
toObject,
CtrBoolean = baseBoolean.constructor,
CtrNumber = baseNumber.constructor,
CtrString = baseString.constructor,
extend,
arrayIndexOf,
objectDefineProperty,
Expand Down Expand Up @@ -320,7 +322,7 @@ function isNumeric(inputArg) {

/**
* The abstract operation throws an error if its argument is a value that cannot be
* converted to an Object using toObject, otherwise returns the argument.
* converted to an Object using argToObject, otherwise returns the argument.
* @private
* @function
* @param {*} inputArg
Expand All @@ -343,32 +345,19 @@ function isNumeric(inputArg) {
* @param {*} inputArg
* @return {object}
*/
toObject = (function () {
// Unused variable for JScript NFE bug
// http://kangax.github.io/nfe/
var CtrBoolean = baseBoolean.constructor,
CtrNumber = baseNumber.constructor,
CtrString = baseString.constructor,
nfeToObject;

tempSafariNFE = function nfeToObject(inputArg, caller) {
var object = checkObjectCoercible(inputArg, 'toObject:' + caller);

if (isBoolean(object)) {
object = new CtrBoolean(object);
} else if (isNumber(object)) {
object = new CtrNumber(object);
} else if (isString(object)) {
object = new CtrString(object);
}

return object;
};

nfeToObject = null;
function argToObject(inputArg, caller) {
var object = checkObjectCoercible(inputArg, 'argToObject:' + caller);

if (isBoolean(object)) {
object = new CtrBoolean(object);
} else if (isNumber(object)) {
object = new CtrNumber(object);
} else if (isString(object)) {
object = new CtrString(object);
}

return tempSafariNFE;
}());
return object;
}

/**
* The abstract operation converts its argument to a value of type String
Expand Down Expand Up @@ -1368,7 +1357,7 @@ stringEndsWith = (function () {
if (splitString && isString(inputArg)) {
object = stringSplit(inputArg, '');
} else {
object = toObject.apply(null, arguments);
object = argToObject.apply(null, arguments);
}

return object;
Expand Down
6 changes: 3 additions & 3 deletions lib/astrodate.min.js

Large diffs are not rendered by default.

43 changes: 16 additions & 27 deletions src/astrodate.js
Expand Up @@ -50,7 +50,9 @@
baseNumber = 0,
baseBoolean = true,
protoName = '__proto__',
toObject,
CtrBoolean = baseBoolean.constructor,
CtrNumber = baseNumber.constructor,
CtrString = baseString.constructor,
extend,
arrayIndexOf,
objectDefineProperty,
Expand Down Expand Up @@ -320,7 +322,7 @@ function isNumeric(inputArg) {

/**
* The abstract operation throws an error if its argument is a value that cannot be
* converted to an Object using toObject, otherwise returns the argument.
* converted to an Object using argToObject, otherwise returns the argument.
* @private
* @function
* @param {*} inputArg
Expand All @@ -343,32 +345,19 @@ function isNumeric(inputArg) {
* @param {*} inputArg
* @return {object}
*/
toObject = (function () {
// Unused variable for JScript NFE bug
// http://kangax.github.io/nfe/
var CtrBoolean = baseBoolean.constructor,
CtrNumber = baseNumber.constructor,
CtrString = baseString.constructor,
nfeToObject;

tempSafariNFE = function nfeToObject(inputArg, caller) {
var object = checkObjectCoercible(inputArg, 'toObject:' + caller);

if (isBoolean(object)) {
object = new CtrBoolean(object);
} else if (isNumber(object)) {
object = new CtrNumber(object);
} else if (isString(object)) {
object = new CtrString(object);
}

return object;
};
function argToObject(inputArg, caller) {
var object = checkObjectCoercible(inputArg, 'argToObject:' + caller);

nfeToObject = null;
if (isBoolean(object)) {
object = new CtrBoolean(object);
} else if (isNumber(object)) {
object = new CtrNumber(object);
} else if (isString(object)) {
object = new CtrString(object);
}

return tempSafariNFE;
}());
return object;
}

/**
* The abstract operation converts its argument to a value of type String
Expand Down Expand Up @@ -1368,7 +1357,7 @@ stringEndsWith = (function () {
if (splitString && isString(inputArg)) {
object = stringSplit(inputArg, '');
} else {
object = toObject.apply(null, arguments);
object = argToObject.apply(null, arguments);
}

return object;
Expand Down

0 comments on commit 342f72a

Please sign in to comment.