@cfpb/cfpb-atomic-component
Advanced tools
Comparing version 0.7.5 to 0.7.6
{ | ||
"name": "@cfpb/cfpb-atomic-component", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"description": "Design System atomic component micro-framework", | ||
@@ -16,3 +16,3 @@ "less": "src/cfpb-atomic-component.less", | ||
], | ||
"gitHead": "623ae81b2e166f0ad9cb5684a41a88c893017ba5" | ||
"gitHead": "adeb995978f6fa215ab1617168648b53f6459401" | ||
} |
@@ -12,3 +12,3 @@ /* ========================================================================== | ||
import * as dataHook from './data-hook'; | ||
import { add, contains, remove } from './data-hook'; | ||
import { STATE_PREFIX } from './standard-type'; | ||
@@ -90,7 +90,7 @@ | ||
function setInitFlag( element ) { | ||
if ( dataHook.contains( element, INIT_FLAG ) ) { | ||
if ( contains( element, INIT_FLAG ) ) { | ||
return false; | ||
} | ||
dataHook.add( element, INIT_FLAG ); | ||
add( element, INIT_FLAG ); | ||
@@ -108,7 +108,7 @@ return true; | ||
function destroyInitFlag( element ) { | ||
if ( !dataHook.contains( element, INIT_FLAG ) ) { | ||
if ( !contains( element, INIT_FLAG ) ) { | ||
return false; | ||
} | ||
dataHook.remove( element, INIT_FLAG ); | ||
remove( element, INIT_FLAG ); | ||
@@ -133,3 +133,3 @@ return true; | ||
element = elements[i]; | ||
if ( element.hasAttribute( 'data-js-hook' ) === false ) { | ||
if ( contains( element, INIT_FLAG ) === false ) { | ||
inst = new Constructor( element ); | ||
@@ -136,0 +136,0 @@ inst.init(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59848
20
1438