Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.psl_table = exports.psl_popup = undefined; | ||
exports.pslHelper = exports.pslTable = exports.pslPopup = undefined; | ||
@@ -17,10 +17,16 @@ var _PopUp = require('./PopUp'); | ||
var _Helper = require('./Helper'); | ||
var _Helper2 = _interopRequireDefault(_Helper); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var psl_popup = exports.psl_popup = _PopUp2.default; | ||
var psl_table = exports.psl_table = _Table2.default; | ||
var pslPopup = exports.pslPopup = _PopUp2.default; | ||
var pslTable = exports.pslTable = _Table2.default; | ||
var pslHelper = exports.pslHelper = _Helper2.default; | ||
exports.default = { | ||
popup: psl_popup, | ||
table: psl_table | ||
popup: pslPopup, | ||
table: pslTable, | ||
helper: pslHelper | ||
}; |
@@ -18,2 +18,9 @@ "use strict"; | ||
key: "isElementInViewport", | ||
/** | ||
* Check if the passed element is in view port. | ||
* @param el | ||
* @return {boolean} | ||
*/ | ||
value: function isElementInViewport(el) { | ||
@@ -31,2 +38,11 @@ //special bonus for those using jQuery | ||
} | ||
/** | ||
* If the container scroll gets the limit element then run the callback | ||
* | ||
* @param container | ||
* @param limit | ||
* @param callback | ||
*/ | ||
}, { | ||
@@ -40,8 +56,20 @@ key: "infiniteScroll", | ||
if (_this.isElementInViewport($(limit))) { | ||
setTimeout(function () { | ||
callback(); | ||
}, 50); | ||
callback(); | ||
} | ||
}); | ||
} | ||
/** | ||
* Resize the table. | ||
* Pass the class or id of the element. | ||
* E.g. .name | #name | ||
* @param name | ||
*/ | ||
}, { | ||
key: "reflowTheader", | ||
value: function reflowTheader(name) { | ||
var $table = $(name); | ||
$table.trigger('reflow'); | ||
} | ||
}]); | ||
@@ -48,0 +76,0 @@ |
The MIT License (MIT) | ||
Copyright (c) Fangdun Cai <cfddream@gmail.com> (fundon.me) | ||
Copyright (c) PygmySlowLoris <team@pygmyslowloris.org> | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "psl-core", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Core Library", | ||
"main": "dist/index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/PygmySlowLoris/psl-core" | ||
}, | ||
"scripts": { | ||
@@ -12,9 +16,13 @@ "compile": "babel -d dist src", | ||
"name": "PygmySlowLoris Team", | ||
"email": "edujugon@gmail.com", | ||
"email": "team@pygmyslowloris.org", | ||
"url": "https://github.com/PygmySlowLoris" | ||
}, | ||
"contributors": [ | ||
"Guido Ceraso <guidoceraso@gmail.com> (https://github.com/hazzo)", | ||
"Eduardo Marcos <edujugon@gmail.com> (https://github.com/Edujugon)" | ||
"Eduardo Marcos <edujugon@gmail.com> (https://github.com/Edujugon)", | ||
"Guido Ceraso <guidoceraso@gmail.com> (https://github.com/hazzo)" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/PygmySlowLoris/psl-core/issues" | ||
}, | ||
"homepage": "https://github.com/PygmySlowLoris/psl-core#readme", | ||
"license": "MIT", | ||
@@ -21,0 +29,0 @@ "devDependencies": { |
# Pygmy Slow Loris Core Library | ||
Set of useful Classes and methods. | ||
Set of useful classes and methods. |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
16
139
0
40798