Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

ender-bootstrap-base

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ender-bootstrap-base - npm Package Compare versions

Comparing version
2.0.3
to
2.0.4
+11
-4
base.js

@@ -8,2 +8,3 @@ /*global provide:true,ender:true*/

, hasComputedStyle = document.defaultView && document.defaultView.getComputedStyle
, hasNewBean = !!require('bean').on
, _$map = $.fn.map

@@ -83,5 +84,7 @@ , _$on = $.fn.on

$.fn.on = function () {
// 'data' argument, can't use it, perhaps pass it as last arg?
if (arguments.length == 3 && typeof arguments[2] == 'function' && typeof arguments[1] != 'string')
return $.fn.bind.call(this, arguments[0], arguments[2])
else if (arguments.length == 3 && typeof arguments[2] == 'function' && typeof arguments[1] == 'string')
// this argument switch only needs to happen for old Bean
else if (!hasNewBean && arguments.length == 3 && typeof arguments[2] == 'function' && typeof arguments[1] == 'string')
return $.fn.bind.call(this, arguments[1], arguments[0], arguments[2])

@@ -92,3 +95,7 @@ return _$on.apply(this, arguments)

$.fn.trigger = function () {
return typeof arguments[0] == 'string' ? _$trigger.apply(this, arguments) : this
if (typeof arguments[0] == 'string')
return _$trigger.apply(this, arguments)
if (typeof arguments[0] == 'object' && typeof arguments[0].type == 'string')
return _$trigger.call(this, arguments[0].type)
return this
}

@@ -191,4 +198,4 @@ // fix up height() and width() call to use computedStyle where available

if (typeof module !== 'undefined') module.exports = faker
else if (typeof provide !== 'undefined') provide('ender-bootstrap-base', faker)
// if (typeof module !== 'undefined') module.exports = faker
if (typeof provide !== 'undefined') provide('ender-bootstrap-base-faker', faker)
// else, where are we??

@@ -195,0 +202,0 @@

@@ -22,4 +22,3 @@ {

"main": "base.js",
"ender": "noop",
"version": "2.0.3"
"version": "2.0.4"
}