ender-bootstrap-base
Advanced tools
+11
-4
@@ -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 @@ |
+1
-2
@@ -22,4 +22,3 @@ { | ||
| "main": "base.js", | ||
| "ender": "noop", | ||
| "version": "2.0.3" | ||
| "version": "2.0.4" | ||
| } |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
7139
4.71%182
4%1
-50%1
Infinity%