You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

bonzo

Package Overview
Dependencies
Maintainers
3
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bonzo - npm Package Compare versions

Comparing version
1.3.4
to
1.3.5
+1
-1
package.json
{
"name": "bonzo"
, "description": "Library agnostic, extensible DOM utility"
, "version": "1.3.4"
, "version": "1.3.5"
, "homepage": "https://github.com/ded/bonzo"

@@ -6,0 +6,0 @@ , "author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)"

@@ -932,3 +932,3 @@ (function (name, context, definition) {

, val: function (s) {
return (typeof s == 'string') ?
return (typeof s == 'string' || typeof s == 'number') ?
this.attr('value', s) :

@@ -935,0 +935,0 @@ this.length ? this[0].value : null

@@ -124,3 +124,3 @@ /*global sink:true start:true Q:true dom:true $:true bowser:true ender:true*/

test('setting & getting attributes', 10, function () {
test('setting & getting attributes', function (done) {
ok($('a#twitter').attr('href') == 'http://twitter.com/', 'retrieves "href" attribute from anchor')

@@ -141,2 +141,6 @@ ok($('a#hrefrel').attr('href') == '/relative', 'retrieves relative "href" attribute from anchor')

ok(input.val() == 'eyoeyo', 'val(val) can set value on input')
input.val(1234)
ok(input.val() == '1234', 'val(val) can set number value on input')
done()
})

@@ -143,0 +147,0 @@