Changeset 15057

Show
Ignore:
Timestamp:
07/02/08 23:19:48 (6 months ago)
Author:
otsune
Message:
  • 'flvplayer' move scope
  • remove toLower
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/nicovideo_comment.js

    r11318 r15057  
    1414 */ 
    1515(function(){ 
    16 var flvp = window.content.wrappedJSObject.document.getElementById('flvplayer'); 
    1716 
    1817liberator.commands.addUserCommand(['nico'],'Fill comment form in nicovideo', 
    1918    function(arg, special){ 
     19        var flvp = window.content.wrappedJSObject.document.getElementById('flvplayer'); 
    2020        var form = special ? 'inputArea.MailInput.text' : 'inputArea.ChatInput1.text' ; 
    2121        flvp.SetVariable(form, arg.toString() ); 
     
    5454            if (special){ 
    5555                commands.forEach(function(command){ 
    56                     if (command[0].toLowerCase().indexOf(filter.toLowerCase()) == 0){ 
     56                    if (command[0].indexOf(filter.toLowerCase()) === 0){ 
    5757                        templates.push(command); 
    5858                    } 
     
    6161            if (special && !(flvp.GetVariable('premiumNo')) ){ 
    6262                premiumcommands.forEach(function(premiumcommand){ 
    63                     if (premiumcommand[0].toLowerCase().indexOf(filter.toLowerCase()) == 0){ 
     63                    if (premiumcommand[0].indexOf(filter.toLowerCase()) === 0){ 
    6464                        templates.push(premiumcommand); 
    6565                    }