Changeset 25889 for lang/javascript/vimperator-plugins
- Timestamp:
- 12/05/08 02:46:20 (5 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/stella.js
r25786 r25889 127 127 : '??:??'); 128 128 129 function storeStyle (target, values ) {129 function storeStyle (target, values, overwrite) { 130 130 let [style, cstyle] = [target.style, content.getComputedStyle(target, '')]; 131 let backup = style.__stella_backup ={};131 let backup = {}; 132 132 for (let [name, value] in Iterator(values)) { 133 133 backup[name] = cstyle[name]; 134 134 style[name] = value; 135 135 } 136 if(overwrite || !style.__stella_backup) 137 style.__stella_backup = backup; 136 138 } 137 139 … … 154 156 let clicked = 0; 155 157 let original = {click: obj[click], dblClick: obj[dblClick]}; 156 liberator.log(original);157 158 obj[click] = function () { 158 159 let self = this, args = arguments; … … 305 306 306 307 toggle: function (name) { 307 if (!this.has(name, 'rw '))308 if (!this.has(name, 'rwt')) 308 309 return; 309 310 let v = this[name]; … … 474 475 set fullscreen (value) { 475 476 value = !!value; 476 477 477 if (this.storage.fullscreen === value) 478 478 return; … … 482 482 let self = this, player = this.player, 483 483 win = content.wrappedJSObject, doc = content.document.wrappedJSObject; 484 485 if (player.ext_getVideoSize() === 'fit') 486 player.ext_setVideoSize('normal'); 484 487 485 488 win.toggleMaximizePlayer(); … … 539 542 540 543 function turnOff () { 541 restoreStyle( content.document.wrappedJSObject.body);542 //restoreStyle(player);544 restoreStyle(doc.body, true); 545 restoreStyle(player, true); 543 546 player.style.marginLeft = ''; 544 547 player.style.marginTop = '';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)