eden-class
Advanced tools
Comparing version 0.0.6 to 0.0.7
24
class.js
@@ -1,2 +0,2 @@ | ||
module.exports = require('classified-magic')(function(prototype) { | ||
module.exports = require('classified-magic')(function() { | ||
/* Require | ||
@@ -13,3 +13,3 @@ -------------------------------*/ | ||
-------------------------------*/ | ||
prototype._events = new (require('events').EventEmitter); | ||
this._events = new (require('events').EventEmitter); | ||
@@ -29,3 +29,3 @@ /* Private Properties | ||
*/ | ||
prototype.argument = function() { | ||
this.argument = function() { | ||
return argument; | ||
@@ -42,3 +42,3 @@ }; | ||
*/ | ||
prototype.capture = function(deep) { | ||
this.capture = function(deep) { | ||
return _copy(this, {}, deep); | ||
@@ -54,3 +54,3 @@ }; | ||
*/ | ||
prototype.inspect = function(variable, next) { | ||
this.inspect = function(variable, next) { | ||
this.argument().test(2, 'string', 'undef'); | ||
@@ -72,3 +72,3 @@ var inspector = require('./inspect').load(); | ||
*/ | ||
prototype.loadState = function(name) { | ||
this.loadState = function(name) { | ||
//argument 1 must be a string | ||
@@ -91,3 +91,3 @@ this.argument().test(1, 'string'); | ||
*/ | ||
prototype.loop = function(callback, i) { | ||
this.loop = function(callback, i) { | ||
//argument 1 must be a function | ||
@@ -114,3 +114,3 @@ this.argument().test(1, 'function'); | ||
*/ | ||
prototype.on = function(event, callback) { | ||
this.on = function(event, callback) { | ||
this.argument() | ||
@@ -134,3 +134,3 @@ //argument 1 must be a string | ||
*/ | ||
prototype.saveState = function(name, value) { | ||
this.saveState = function(name, value) { | ||
//argument 1 must be a string | ||
@@ -155,3 +155,3 @@ this.argument().test(1, 'string'); | ||
*/ | ||
prototype.sync = function(callback) { | ||
this.sync = function(callback) { | ||
//argument 1 must be a function | ||
@@ -171,3 +171,3 @@ this.argument().test(1, 'function'); | ||
*/ | ||
prototype.trigger = function(event) { | ||
this.trigger = function(event) { | ||
//argument 1 must be a string | ||
@@ -188,3 +188,3 @@ this.argument().test(1, 'string'); | ||
*/ | ||
prototype.when = function(condition, callback) { | ||
this.when = function(condition, callback) { | ||
//argument 2 must be a function | ||
@@ -191,0 +191,0 @@ this.argument().test(1, 'function'); |
@@ -1,2 +0,2 @@ | ||
module.exports = require('./class').extend(function(prototype) { | ||
module.exports = require('./class').extend(function() { | ||
/* Require | ||
@@ -10,4 +10,4 @@ -------------------------------*/ | ||
-------------------------------*/ | ||
prototype._name = null; | ||
prototype._scope = null; | ||
this._name = null; | ||
this._scope = null; | ||
@@ -18,3 +18,3 @@ /* Private Properties | ||
-------------------------------*/ | ||
prototype.___get = function(key) { | ||
this.___get = function(key) { | ||
var self = this.capture(); | ||
@@ -63,3 +63,3 @@ return function() { | ||
*/ | ||
prototype.next = function(scope, name) { | ||
this.next = function(scope, name) { | ||
this.argument() | ||
@@ -85,3 +85,3 @@ //argument 1 must be an object | ||
*/ | ||
prototype.output = function(variable) { | ||
this.output = function(variable) { | ||
if(variable === true) { | ||
@@ -108,3 +108,3 @@ variable = '*TRUE*'; | ||
*/ | ||
prototype._getResults = function(name, args) { | ||
this._getResults = function(name, args) { | ||
return this.scope[name].apply(this.scope, args); | ||
@@ -111,0 +111,0 @@ } |
{ | ||
"name": "eden-class", | ||
"description": "Eden JS Base Class", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": { | ||
@@ -19,3 +19,3 @@ "name": "Christian Blanquera", | ||
"syncopate": "0.0.1", | ||
"classified-magic": "0.0.13" | ||
"classified-magic": "0.1.1" | ||
}, | ||
@@ -22,0 +22,0 @@ "main": "./class.js", |
var assert = require('assert'); | ||
var rating = require('../class').extend(function(prototype) { | ||
prototype.setStars = function(number) { | ||
var rating = require('../class').extend(function() { | ||
this.setStars = function(number) { | ||
this.stars = number; | ||
@@ -9,3 +9,3 @@ return this; | ||
prototype.getStars = function() { | ||
this.getStars = function() { | ||
return this.stars; | ||
@@ -15,4 +15,4 @@ }; | ||
var User = require('../class').extend(function(prototype) { | ||
prototype.setName = function(name) { | ||
var User = require('../class').extend(function() { | ||
this.setName = function(name) { | ||
this.name = name; | ||
@@ -22,3 +22,3 @@ return this; | ||
prototype.getName = function() { | ||
this.getName = function() { | ||
return this.name; | ||
@@ -25,0 +25,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11531
+ Addedclassified@0.1.1(transitive)
+ Addedclassified-magic@0.1.1(transitive)
- Removedclassified@0.0.16(transitive)
- Removedclassified-magic@0.0.13(transitive)
Updatedclassified-magic@0.1.1