Skip to content

Commit

Permalink
Release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vesln committed Aug 30, 2014
1 parent d6bc15c commit 87d86af
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,9 @@

0.1.1 / 2014-08-30
==================

* Noop fix

0.1.0 / 2014-08-30
==================

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.1.0",
"version": "0.1.1",
"license": "MIT",
"main": "lib/browser.js",
"scripts": [
Expand Down
11 changes: 8 additions & 3 deletions fload.js
Expand Up @@ -211,12 +211,17 @@ require.register("fload/lib/browser.js", function(exports, require, module){

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

files = files.slice(0);

callbacks.pre = callbacks.pre || noop;
callbacks.post = callbacks.post || noop;
callbacks.pre = callbacks.pre || function(_, fn) {
fn();
};

callbacks.post = callbacks.post || function(_, _, fn) {
fn();
};

(function next() {
var file = files.shift();
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "fload",
"version": "0.1.0",
"version": "0.1.1",
"description": "JavaScript file loader",
"main": "./lib/node.js",
"homepage": "https://github.com/vesln/fload",
Expand Down

0 comments on commit 87d86af

Please sign in to comment.