Comparing version 0.3.16 to 0.3.17
@@ -1,2 +0,2 @@ | ||
/* version: 0.3.16, born: 20-3-2014 23:31 */ | ||
/* version: 0.3.17, born: 21-3-2014 9:29 */ | ||
var Organic = (function(w){ | ||
@@ -3,0 +3,0 @@ var o = { |
@@ -85,2 +85,3 @@ var path = require("path"); | ||
'!tests/common/define.external.css.spec.js', | ||
'!tests/common/return-processed-external-data.spec.js', | ||
'!tests/metamorphosis/html/morph.html.import.spec.js', | ||
@@ -90,3 +91,3 @@ '!tests/metamorphosis/html/morph.html.indentation.spec.js', | ||
'!tests/bugs/use.import.in.css.file.spec.js', | ||
'!tests/experimental/csstojson.spec.js' | ||
'!tests/experimental/csstojson.spec.js', | ||
], | ||
@@ -93,0 +94,0 @@ dest: 'client-side/tests/tests.from.node.js', |
@@ -44,4 +44,18 @@ var requireUncached = require('../helpers/RequireUncached.js'), | ||
return function(path) { | ||
var p, _i, _len; | ||
return function() { | ||
var p, _i, _len, path = null, callback, options = null; | ||
for(var i=0; i<arguments.length; i++) { | ||
switch(typeof arguments[i]) { | ||
case "function": callback = arguments[i]; break; | ||
case "string": path = arguments[i]; break; | ||
case "object": | ||
if(Array.prototype.isPrototypeOf(arguments[i])) | ||
path = arguments[i]; | ||
else | ||
options = arguments[i]; | ||
break; | ||
} | ||
} | ||
if (typeof path === 'string') { | ||
@@ -55,4 +69,9 @@ importFile(path); | ||
} | ||
return API; | ||
if(options){ | ||
return API.compile(callback, options); | ||
} else { | ||
return API; | ||
} | ||
}; | ||
} |
{ | ||
"name": "absurd", | ||
"version": "0.3.16", | ||
"version": "0.3.17", | ||
"homepage": "http://absurdjs.com/", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript library with superpowers - http://absurdjs.com/", |
Sorry, the diff of this file is too big to display
889484
284
27244