Comparing version 3.3.0 to 3.3.1
{ | ||
"name": "loadjs", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "authors": [ |
# LoadJS Changelog | ||
## 3.3.0 - January 9, 2007 | ||
## 3.3.1 - January 11, 2017 | ||
* Minor code cleanup | ||
## 3.3.0 - January 9, 2017 | ||
* Added reset() method to reset dependency trackers | ||
@@ -6,0 +10,0 @@ |
@@ -31,3 +31,3 @@ loadjs = (function () { | ||
// define callback function | ||
fn = function(bundleId, pathsNotFound) { | ||
fn = function (bundleId, pathsNotFound) { | ||
if (pathsNotFound.length) depsNotFound.push(bundleId); | ||
@@ -111,3 +111,3 @@ | ||
e.onload = e.onerror = e.onbeforeload = function(ev) { | ||
e.onload = e.onerror = e.onbeforeload = function (ev) { | ||
var result = ev.type[0]; | ||
@@ -213,3 +213,3 @@ | ||
// load scripts | ||
loadFiles(paths, function(pathsNotFound) { | ||
loadFiles(paths, function (pathsNotFound) { | ||
// success and error callbacks | ||
@@ -230,5 +230,5 @@ if (pathsNotFound.length) (args.error || devnull)(pathsNotFound); | ||
*/ | ||
loadjs.ready = function (deps, args) { | ||
loadjs.ready = function ready(deps, args) { | ||
// subscribe to bundle load event | ||
subscribe(deps, function(depsNotFound) { | ||
subscribe(deps, function (depsNotFound) { | ||
// execute callbacks | ||
@@ -235,0 +235,0 @@ if (depsNotFound.length) (args.error || devnull)(depsNotFound); |
@@ -39,3 +39,3 @@ (function(root, factory) { | ||
// define callback function | ||
fn = function(bundleId, pathsNotFound) { | ||
fn = function (bundleId, pathsNotFound) { | ||
if (pathsNotFound.length) depsNotFound.push(bundleId); | ||
@@ -119,3 +119,3 @@ | ||
e.onload = e.onerror = e.onbeforeload = function(ev) { | ||
e.onload = e.onerror = e.onbeforeload = function (ev) { | ||
var result = ev.type[0]; | ||
@@ -221,3 +221,3 @@ | ||
// load scripts | ||
loadFiles(paths, function(pathsNotFound) { | ||
loadFiles(paths, function (pathsNotFound) { | ||
// success and error callbacks | ||
@@ -238,5 +238,5 @@ if (pathsNotFound.length) (args.error || devnull)(pathsNotFound); | ||
*/ | ||
loadjs.ready = function (deps, args) { | ||
loadjs.ready = function ready(deps, args) { | ||
// subscribe to bundle load event | ||
subscribe(deps, function(depsNotFound) { | ||
subscribe(deps, function (depsNotFound) { | ||
// execute callbacks | ||
@@ -243,0 +243,0 @@ if (depsNotFound.length) (args.error || devnull)(depsNotFound); |
@@ -31,3 +31,3 @@ loadjs = (function () { | ||
// define callback function | ||
fn = function(bundleId, pathsNotFound) { | ||
fn = function (bundleId, pathsNotFound) { | ||
if (pathsNotFound.length) depsNotFound.push(bundleId); | ||
@@ -111,3 +111,3 @@ | ||
e.onload = e.onerror = e.onbeforeload = function(ev) { | ||
e.onload = e.onerror = e.onbeforeload = function (ev) { | ||
var result = ev.type[0]; | ||
@@ -213,3 +213,3 @@ | ||
// load scripts | ||
loadFiles(paths, function(pathsNotFound) { | ||
loadFiles(paths, function (pathsNotFound) { | ||
// success and error callbacks | ||
@@ -230,5 +230,5 @@ if (pathsNotFound.length) (args.error || devnull)(pathsNotFound); | ||
*/ | ||
loadjs.ready = function (deps, args) { | ||
loadjs.ready = function ready(deps, args) { | ||
// subscribe to bundle load event | ||
subscribe(deps, function(depsNotFound) { | ||
subscribe(deps, function (depsNotFound) { | ||
// execute callbacks | ||
@@ -235,0 +235,0 @@ if (depsNotFound.length) (args.error || devnull)(depsNotFound); |
{ | ||
"name": "loadjs", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Tiny async loader for modern browsers", |
@@ -209,3 +209,3 @@ # LoadJS | ||
```javascript | ||
loadjs.reset() | ||
loadjs.reset(); | ||
``` | ||
@@ -212,0 +212,0 @@ |
@@ -30,3 +30,3 @@ /** | ||
// define callback function | ||
fn = function(bundleId, pathsNotFound) { | ||
fn = function (bundleId, pathsNotFound) { | ||
if (pathsNotFound.length) depsNotFound.push(bundleId); | ||
@@ -110,3 +110,3 @@ | ||
e.onload = e.onerror = e.onbeforeload = function(ev) { | ||
e.onload = e.onerror = e.onbeforeload = function (ev) { | ||
var result = ev.type[0]; | ||
@@ -212,3 +212,3 @@ | ||
// load scripts | ||
loadFiles(paths, function(pathsNotFound) { | ||
loadFiles(paths, function (pathsNotFound) { | ||
// success and error callbacks | ||
@@ -229,5 +229,5 @@ if (pathsNotFound.length) (args.error || devnull)(pathsNotFound); | ||
*/ | ||
loadjs.ready = function (deps, args) { | ||
loadjs.ready = function ready(deps, args) { | ||
// subscribe to bundle load event | ||
subscribe(deps, function(depsNotFound) { | ||
subscribe(deps, function (depsNotFound) { | ||
// execute callbacks | ||
@@ -234,0 +234,0 @@ if (depsNotFound.length) (args.error || devnull)(depsNotFound); |
@@ -31,3 +31,3 @@ loadjs = (function () { | ||
// define callback function | ||
fn = function(bundleId, pathsNotFound) { | ||
fn = function (bundleId, pathsNotFound) { | ||
if (pathsNotFound.length) depsNotFound.push(bundleId); | ||
@@ -111,3 +111,3 @@ | ||
e.onload = e.onerror = e.onbeforeload = function(ev) { | ||
e.onload = e.onerror = e.onbeforeload = function (ev) { | ||
var result = ev.type[0]; | ||
@@ -213,3 +213,3 @@ | ||
// load scripts | ||
loadFiles(paths, function(pathsNotFound) { | ||
loadFiles(paths, function (pathsNotFound) { | ||
// success and error callbacks | ||
@@ -230,5 +230,5 @@ if (pathsNotFound.length) (args.error || devnull)(pathsNotFound); | ||
*/ | ||
loadjs.ready = function (deps, args) { | ||
loadjs.ready = function ready(deps, args) { | ||
// subscribe to bundle load event | ||
subscribe(deps, function(depsNotFound) { | ||
subscribe(deps, function (depsNotFound) { | ||
// execute callbacks | ||
@@ -235,0 +235,0 @@ if (depsNotFound.length) (args.error || devnull)(depsNotFound); |
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
350895