Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-attribute-observable

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-attribute-observable - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

2

behaviors.js

@@ -13,3 +13,3 @@ 'use strict';

var formElements = {"INPUT": true, "TEXTAREA": true, "SELECT": true},
var formElements = {"INPUT": true, "TEXTAREA": true, "SELECT": true, "BUTTON": true},
// Used to convert values to strings.

@@ -16,0 +16,0 @@ toString = function(value){

@@ -173,2 +173,13 @@ var canReflect = require("can-reflect");

testIfRealDocument("can get value from button element", function(assert) {
var button = document.createElement("button");
// Set the initial value
button.value = "5";
var ta = this.fixture;
ta.appendChild(button);
var obs = new AttributeObservable(button, "value", {});
assert.equal(canReflect.getValue(obs), "5", "correct default value");
});
});
{
"name": "can-attribute-observable",
"version": "1.1.6",
"version": "1.1.7",
"description": "Create observables from HTML attributes.",

@@ -5,0 +5,0 @@ "main": "can-attribute-observable",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc