Changeset 2fc4596 in github


Ignore:
Timestamp:
Jul 24, 2010 2:49:27 PM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
52c0f76
Parents:
27ea62a
Message:
  • Allow commands with mutiple - (#1486851)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r27ea62a r2fc4596  
    978978      // unified command call (command name == function name) 
    979979      default: 
    980         var func = command.replace('-', '_'); 
     980        var func = command.replace(/-/g, '_'); 
    981981        if (this[func] && typeof this[func] == 'function') 
    982982          this[func](props); 
Note: See TracChangeset for help on using the changeset viewer.