can-attribute-observable
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43303
1083