Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vesln committed Aug 30, 2014
1 parent 6f8226d commit 244bd0f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
@@ -1,5 +1,12 @@

0.0.3 / 2014-01-02
0.1.0 / 2014-08-30
==================

* Do not require pre and post callbacks
* Update dev deps
* Support browserify

0.0.3 / 2014-01-02
==================

* support browserify
Expand Down
2 changes: 1 addition & 1 deletion component.json
Expand Up @@ -2,7 +2,7 @@
"name": "fload",
"repo": "vesln/fload",
"description": "JavaScript file loader",
"version": "0.0.2",
"version": "0.1.0",
"license": "MIT",
"main": "lib/browser.js",
"scripts": [
Expand Down
7 changes: 6 additions & 1 deletion fload.js
Expand Up @@ -211,8 +211,13 @@ require.register("fload/lib/browser.js", function(exports, require, module){

function load(files, callbacks) {
var target = document.getElementsByTagName('script')[0];
var noop = function() {};

files = files.slice(0);

callbacks.pre = callbacks.pre || noop;
callbacks.post = callbacks.post || noop;

(function next() {
var file = files.shift();
if (!file) return callbacks.done();
Expand Down Expand Up @@ -245,7 +250,7 @@ module.exports = load;
require.alias("fload/lib/browser.js", "fload/index.js");if (typeof exports == "object") {
module.exports = require("fload");
} else if (typeof define == "function" && define.amd) {
define(function(){ return require("fload"); });
define([], function(){ return require("fload"); });
} else {
this["fload"] = require("fload");
}})();
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "fload",
"version": "0.0.3",
"version": "0.1.0",
"description": "JavaScript file loader",
"main": "./lib/node.js",
"homepage": "https://github.com/vesln/fload",
Expand Down

0 comments on commit 244bd0f

Please sign in to comment.