Created
June 15, 2011 15:52
Revisions
-
nathansmith renamed this gist
Feb 3, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nathansmith revised this gist
Feb 3, 2012 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,3 @@ // Protect against parseInt being used // without radix, by defaulting to 10. -
nathansmith revised this gist
Feb 3, 2012 . 1 changed file with 9 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,10 +7,13 @@ // Conditionally check value, in case // future implementations of parseInt // provide native base-10 by default. (function(window) { var _parseInt = window.parseInt; if (_parseInt('09') === 0) { window.parseInt = function(str, radix) { return _parseInt(str, radix || 10); }; } })(this); -
nathansmith revised this gist
Feb 3, 2012 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ // JSLint: /*global window, _parseInt, parseInt*/ // Protect against parseInt being used // without radix, by defaulting to 10. // Conditionally check value, in case // future implementations of parseInt // provide native base-10 by default. -
nathansmith revised this gist
Jun 15, 2011 . No changes.There are no files selected for viewing
-
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ // JSLint: /*global window, _parseInt, parseInt*/ // Conditionally check value, in case // future implementations of parseInt // provide native base-10 by default. if (window.parseInt('09') === 0) { window._parseInt = window.parseInt; window.parseInt = function(str, radix) { -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ // Conditionally check value, in case // future implementations of parseInt // provide native base-10 by default. if (window.parseInt('09') === 0) { // JSLint: /*global window, _parseInt, parseInt*/ -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,9 @@ // future implementations of parseInt // provide native base-10 by default. if (parseInt('09') === 0) { // JSLint: /*global window, _parseInt, parseInt*/ window._parseInt = window.parseInt; window.parseInt = function(str, radix) { -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,9 @@ // future implementations of parseInt // provide native base-10 by default. if (parseInt('09') === 0) { window._parseInt = window.parseInt; window.parseInt = function(str, radix) { return window._parseInt(str, radix || 10); }; } -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ // Conditionally check value, in case // future implementations of parseInt // provide native base-10 by default. if (parseInt('09') === 0) { /*global _parseInt*/ _parseInt = parseInt; -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ // Conditionally check value, in case // future implementations of parseInt // provide native base-10 by default. if (parseInt('090') === 0) { /*global _parseInt*/ _parseInt = parseInt; -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 7 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +1,9 @@ if (parseInt('090') === 0) { /*global _parseInt*/ _parseInt = parseInt; /*global parseInt*/ parseInt = function(str, radix) { return _parseInt(str, radix || 10); }; } -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var APP = (function(window) { function parseInt(str, radix) { radix = radix || 10; return window.parseInt(str, radix); } // Un-comment to test. Returns 90. -
nathansmith revised this gist
Jun 15, 2011 . No changes.There are no files selected for viewing
-
nathansmith revised this gist
Jun 15, 2011 . No changes.There are no files selected for viewing
-
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var APP = (function(window) { return window.parseInt(str, 10); } // Un-comment to test. Returns 90. // console.log(parseInt('090')); return { -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ var APP = (function(window) { // // parseInt('090', 10); // // Because srsly, who ever means // anything *but* base-10 parse? }; })(this); -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,15 @@ // Un-comment to test. Returns 0. // console.log(parseInt('090')); var APP = (function(window) { function parseInt(str, radix) { radix = radix || 10; return window.parseInt(str, 10); } // Un-comment to test. Returns 9. // console.log(parseInt('090')); return { // Sub-objects and methods that // use the modified parseInt... -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ var APP = (function(window) { function parseInt(str, radix) { radix = radix || 10; return window.parseInt(str, 10); } return { -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ var APP = (function(window) { function parseInt(str, radix) { radix = radix || 10; return window.parseInt(str, radix); } return { -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 17 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +1,20 @@ var APP = (function(window) { function parseInt(str, radix) { radix = radix || 10; return window.parseInt(str, 10); } return { // Sub-objects and methods that // use the modified parseInt... // // parseInt('090'); // // instead of: // // parseInt('090', 10); // // Because, srsly, who ever means // anything *but* base-10 parse? }; })(this); -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 17 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,20 @@ var APP = (function(window) { function parseInt(str, radix) { radix = radix || 10; return window.parseInt(str, radix); } return { // Sub-objects and methods that // use the modified parseInt... // // parseInt('090'); // // instead of: // // parseInt('090', 10); // // Because, srsly, who ever means // anything *but* base-10 parse? }; })(this); -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var APP = (function(window) { // // parseInt('090'); // // instead of: // // parseInt('090', 10); // -
nathansmith revised this gist
Jun 15, 2011 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,15 @@ var APP = (function(window) { return { // Sub-objects and methods that // use the modified parseInt... // // parseInt('090'); // // versus: // // parseInt('090', 10); // // Because, srsly, who ever means // anything *but* base-10 parse? }; })(this); -
nathansmith created this gist
Jun 15, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ var APP = (function(window) { function parseInt(str) { return window.parseInt(str, 10); } return { // Sub-objects and methods that // use the modified parseInt. }; })(this);