Permalink
Browse files

Update aliases, forgot about that. heh. 2.4

  • Loading branch information...
1 parent c0c7ffb commit 0275164b456714f10d744bfd56a2fda802dab3ce @nijikokun committed Jan 13, 2012
Showing with 24 additions and 24 deletions.
  1. +8 −8 estro.js
  2. +15 −15 estro.min.js
  3. +1 −1 package.json
View
@@ -9,7 +9,7 @@
// Initialize Estro Object
// This will be our holder for all of the Prototype functions.
var Estro = {
- version: "2.3"
+ version: "2.4"
};
// Quick Prototype access, for looping or in-code access.
@@ -385,13 +385,13 @@
},
// Aliases
- ord: Estro.Number.ordinalize,
- chr: Estro.Number.charCode,
- mod: Estro.Number.modulo,
- clamp: Estro.Number.limit,
- toInt: Estro.Number.toNumber,
- toRad: Estro.Number.toRadians,
- toDeg: Estro.Number.toDegrees
+ ord: function () { return this.ordinalize(); },
+ chr: function () { return this.charCode(); },
+ mod: function (n) { return this.modulo(n); },
+ clamp: function (m,x) { return this.limit(m,x); },
+ toInt: function () { return this.toNumber(); },
+ toRad: function () { return this.toRadians(); },
+ toDeg: function () { return this.toDegrees(); }
};
// String based functions
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "Estro",
"description": "Extended Prototype Object",
- "version": "2.3",
+ "version": "2.4",
"homepage": "https://github.com/Nijikokun/Estro",
"author": "Nijikokun <nijikokun@gmail.com> (@nijikokun)",
"repository": {

0 comments on commit 0275164

Please sign in to comment.