Permalink
Browse files

Use aok as unused result scope.

  • Loading branch information...
ryanve committed Oct 16, 2013
1 parent bf505b0 commit 8aa006b705254231a92a79c29a2ed2fe5377dc36
Showing with 11 additions and 19 deletions.
  1. +5 −9 aok.js
  2. +2 −2 aok.min.js
  3. +4 −8 src/aok.js
View
14 aok.js
@@ -1,5 +1,5 @@
/*!
- * aok 1.4.0+201310162201
+ * aok 1.4.0+201310162228
* https://github.com/ryanve/aok
* MIT License 2013 Ryan Van Etten
*/
@@ -91,17 +91,13 @@
* @example result(0) // 0
* @example result([1], 0) // 1
*/
- aok['result'] = function(o, k) {
+ function result(o, k) {
2 == arguments.length ? k = o[k] : (k = o, o = this);
return typeof k == 'function' ? k.call(o) : k;
- };
-
- /**
- * @this {Object}
- * @param {string|number} k
- */
+ }
+ aok['result'] = result;
aok.prototype['result'] = function(k) {
- return aok['result'].apply(null, 2 == arguments.length ? arguments : [this, k]);
+ return result.apply(aok, 2 == arguments.length ? arguments : [this, k]);
};
/**
View

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

Oops, something went wrong.
View
@@ -85,17 +85,13 @@
* @example result(0) // 0
* @example result([1], 0) // 1
*/
- aok['result'] = function(o, k) {
+ function result(o, k) {
2 == arguments.length ? k = o[k] : (k = o, o = this);
return typeof k == 'function' ? k.call(o) : k;
- };
-
- /**
- * @this {Object}
- * @param {string|number} k
- */
+ }
+ aok['result'] = result;
aok.prototype['result'] = function(k) {
- return aok['result'].apply(null, 2 == arguments.length ? arguments : [this, k]);
+ return result.apply(aok, 2 == arguments.length ? arguments : [this, k]);
};
/**

0 comments on commit 8aa006b

Please sign in to comment.