Socket
Socket
Sign inDemoInstall

loadjs

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadjs - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

2

bower.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc