OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 'use strict'; | |
6 | |
7 installClass('HTMLBlinkElement', function(global, HTMLBlinkElementPrototype) { | |
8 HTMLBlinkElementPrototype.attachedCallback = function() { | |
9 this.displayed_ = 1; | |
10 this.timer_ = setInterval(function() { | |
11 this.setAttribute("style", this.displayed_ ? "display:inline" : "dis play:none"); | |
abarth-chromium
2014/08/01 21:42:45
I think you're supposed to twiddle between visibil
haraken
2014/08/01 21:48:03
Done.
| |
12 this.displayed_ ^= 1; | |
13 }.bind(this), 500); | |
14 }; | |
15 | |
16 HTMLBlinkElementPrototype.detachedCallback = function() { | |
17 clearInterval(this.timer_); | |
18 }; | |
19 }); | |
OLD | NEW |