1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-02 06:48:06 +00:00

Revised test data

Testing against the output of cook.rb isn't satisfactory because of the
bugs in it; instead we're now going to test against the tiddlywiki.com
build products
This commit is contained in:
Jeremy Ruston
2011-12-03 11:41:25 +00:00
parent db2fafb0ab
commit 07df513140
531 changed files with 34826 additions and 4951 deletions

View File

@@ -0,0 +1,15 @@
//--
//-- Augmented methods for the JavaScript Number() object
//--
// Clamp a number to a range
Number.prototype.clamp = function(min,max)
{
var c = this;
if(c < min)
c = min;
if(c > max)
c = max;
return Number(c);
};