change back state event scope, document level makes more sense as that's where the state class is applied
This commit is contained in:
1 parent
8dc7ae85a1
commit
0d9a6419bb
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -255,7 +255,7 @@
|
||||
|
||||
// Example of binding an event to a state. This listener will trigger
|
||||
// when the slide with 'data-state="blurred"' is opened.
|
||||
document.querySelector( '#reveal' ).addEventListener( 'blurred', function() {
|
||||
document.addEventListener( 'blurred', function() {
|
||||
|
||||
}, false );
|
||||
|
||||
|
||||
Reference in new issue
Block a user