(object, type)
| 42 | } |
| 43 | |
| 44 | function bug(object, type) { |
| 45 | $.each(object, function (index) { |
| 46 | if ($.isFunction(this)) { |
| 47 | var original = this; |
| 48 | object[index] = function () { |
| 49 | console.log(type +'.'+ index); |
| 50 | console.log(arguments); |
| 51 | original.apply(this, arguments); |
| 52 | }; |
| 53 | } |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | function oneOrMany(object) { |
| 58 | return (typeof object == 'object' && object.constructor == [].constructor) ? object : [ object ]; |
nothing calls this directly
no outgoing calls
no test coverage detected