Permalink
Browse files

Build @ 1.7.2

  • Loading branch information...
1 parent d50d44f commit 25e5e3d52f3f05e208031ac28409d226d58cefec @ryanve committed Nov 23, 2013
Showing with 14 additions and 16 deletions.
  1. +11 −13 aok.js
  2. +2 −2 aok.min.js
  3. +1 −1 package.json
View
24 aok.js
@@ -1,5 +1,5 @@
/*!
- * aok 1.7.1+201311122117
+ * aok 1.7.2+201311230458
* https://github.com/ryanve/aok
* MIT License 2013 Ryan Van Etten
*/
@@ -8,7 +8,8 @@
typeof module != 'undefined' && module['exports'] ? module['exports'] = make() : root[name] = make();
}(this, 'aok', function() {
- var implement
+ // Sync the prototype and use local alias
+ var model = aok.prototype = Aok.prototype
, globe = this
, plain = {}
, owns = plain.hasOwnProperty
@@ -51,9 +52,6 @@
return arguments.length ? new Aok(data) : new Aok;
}
- // Sync the prototypes and alias to local.
- implement = aok.prototype = Aok.prototype;
-
// Console abstractions
assign(aok, aok['console'] = (function(abstracted, console, hasAlert, win) {
function abstracts(name, force, fallback) {
@@ -79,17 +77,17 @@
}({}, nativeConsole, hasAlert, win)));
// Alias the "express" method to the prototype for usage with tests.
- implement['express'] = aok['express'] = clone(aok['log']);
+ model['express'] = aok['express'] = clone(aok['log']);
// Default messages
- implement['pass'] = 'Pass';
- implement['fail'] = 'Fail';
+ model['pass'] = 'Pass';
+ model['fail'] = 'Fail';
/**
* @this {Aok|Object}
* @return {Aok|Object}
*/
- implement['init'] = function() {
+ model['init'] = function() {
if (this === globe) throw new Error('@this');
has(this, 'id') || (this['id'] = ++uid);
has(this, 'test') && this['run']();
@@ -101,7 +99,7 @@
* @this {Aok|Object}
* @return {Aok|Object}
*/
- implement['run'] = function() {
+ model['run'] = function() {
if (this === globe) throw new Error('@this');
this['test'] = !!aok['result'](this, 'test');
return this['handler']();
@@ -111,15 +109,15 @@
* @this {Aok|Object}
* @param {(string|number)=} key
*/
- implement['cull'] = function(key) {
+ model['cull'] = function(key) {
return this[this[null == key ? 'test' : key] ? 'pass' : 'fail'];
};
/**
* default handler can be overridden
* @return {Aok}
*/
- implement['handler'] = function() {
+ model['handler'] = function() {
var msg = this['cull']();
if (typeof msg == 'function') msg.call(this);
else this['express']('#' + this['id'] + ': ' + this['explain'](msg));
@@ -130,7 +128,7 @@
* @param {*=} item
* @return {string}
*/
- implement['explain'] = aok['explain'] = function(item) {
+ model['explain'] = aok['explain'] = function(item) {
item = arguments.length ? item : this;
return item === Object(item) ? toString.call(item) : '' + item;
};
View

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

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "aok",
"description": "Extensible test suite API.",
- "version": "1.7.1",
+ "version": "1.7.2",
"homepage": "https://github.com/ryanve/aok",
"license": "MIT",
"author": "Ryan Van Etten",

0 comments on commit 25e5e3d

Please sign in to comment.