From 9b60e1d2d6a3ffb885e87f0bf72110824a68df81 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 17 Oct 2014 11:01:28 +0200 Subject: [PATCH] Updated requirejs compatibility --- .travis.yml | 4 ++-- package.json | 7 +++++-- selfish.js | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 780731a..58f2371 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: - - 0.4 - - 0.5 - 0.6 + - 0.8 + - 0.10 diff --git a/package.json b/package.json index adb6420..21211ad 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,13 @@ { "name": "selfish", "id": "selfish", - "version": "0.3.2", + "version": "0.3.3", "description": "Class-free, pure prototypal inheritance", "keywords": [ "oop", "inheritance", "prototype", "class", "micro", "class-free" ], "author": "Irakli Gozalishvili (http://jeditoolkit.com)", + "contributors": [ + "Eduardo San Martin Morote (http://posva.net)" + ], "homepage": "https://github.com/Gozala/selfish", "repository": { "type": "git", @@ -19,7 +22,7 @@ }, "main": "./selfish.js", "engines": { - "node": ">=0.4.0" + "node": ">=0.6.0" }, "scripts": { "test": "node tests/test-selfish.js" diff --git a/selfish.js b/selfish.js index fe0f9c7..cf80191 100644 --- a/selfish.js +++ b/selfish.js @@ -3,7 +3,7 @@ forin: true latedef: false supernew: true */ /*global define: true */ -!(typeof define !== "function" ? function($){ $(null, typeof exports !== 'undefined' ? exports : window); } : define)(function(require, exports) { +!(typeof define !== "function" ? function(_, $){ $(null, typeof exports !== 'undefined' ? exports : window); } : define)('selfish', function(require, exports) { "use strict";