Comparing version 0.1.0 to 0.1.1
@@ -12,5 +12,6 @@ /*! | ||
*/ | ||
var Class = module.exports = (function (undefined) { | ||
var Class = module.exports = (function(slice) { | ||
return { | ||
varsion: "0.1.1", | ||
create: create, | ||
@@ -124,3 +125,3 @@ Methods: { | ||
function merge(array, args) { | ||
array = Array.prototype.slice.call(array, 0); | ||
array = slice.call(array, 0); | ||
return update(array, args); | ||
@@ -133,3 +134,3 @@ } | ||
var args = Array.prototype.slice.call(args, 1); | ||
var args = slice.call(args, 1); | ||
return function() { | ||
@@ -155,2 +156,2 @@ var a = merge(args, arguments); | ||
}()); | ||
}(Array.prototype.slice)); |
{ | ||
"name": "Class", | ||
"author": "Firejune (http://firejune.com/)", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Port of Prototype.js inheritance implementation for Node.js.", | ||
"homepage": "http://github.com/firejune/class", | ||
"keywords": [ | ||
"prototype", | ||
"prototypejs", | ||
@@ -9,0 +10,0 @@ "inheritance", |
@@ -23,3 +23,3 @@ # Class | ||
$ git clone https://github.com/firejune/class.git | ||
$ git clone git://github.com/firejune/class.git | ||
@@ -40,3 +40,3 @@ NPM | ||
speak: function() { | ||
alert(this.name + " says: " + this.sound + "!"); | ||
console.log(this.name + " says: " + this.sound + "!"); | ||
} | ||
@@ -54,7 +54,7 @@ }); | ||
ringneck.speak(); | ||
//-> alerts "Ringneck says: hissssssssss!" | ||
//-> "Ringneck says: hissssssssss!" | ||
var rattlesnake = new Snake("Rattler"); | ||
rattlesnake.speak(); | ||
//-> alerts "Rattler says: hissssssssss!" | ||
//-> "Rattler says: hissssssssss!" | ||
@@ -61,0 +61,0 @@ |
@@ -23,6 +23,6 @@ var Class = require('./lib/class'); | ||
ringneck.speak(); | ||
//-> alerts "Ringneck says: hissssssssss!" | ||
//-> "Ringneck says: hissssssssss!" | ||
var rattlesnake = new Snake("Rattler"); | ||
rattlesnake.speak(); | ||
//-> alerts "Rattler says: hissssssssss!" | ||
//-> "Rattler says: hissssssssss!" |
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
137
6772