Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Dec 6, 2017
1 parent de923b0 commit 76cee92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Steps:
npm run clean // removes node_modules so they get rebuilt
npm install // installs & builds node_modules
npm run pack // bundles app code using webpack to bundle.js
npm run dist // this does the publish
npm run dist // this does the publish, must do it on each OS (Mac,Win,Linux)
```
-

Expand Down
1 change: 0 additions & 1 deletion app/server/patternsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ var PatternsService = {
* @return {pattid} id of pattern playing, or false if pattern doesn't exist
*/
playPatternFrom: function(source, pattid, blink1id) {
// playPattern: function(pattid, blink1id) {
log.msg("PatternsService.playPatternFrom: src:",source,"id:", pattid, ", blink1id:", blink1id, "patternsTemp:", patternsTemp);

// if a pattern is being edited, do not allow playing
Expand Down
6 changes: 2 additions & 4 deletions app/server/scriptService.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var ScriptService = {
startScripts: function() {
var self = this;
var rules = self.rules;
log.msg("ScriptService.startScripts: rules",rules); //, "caller:",arguments.caller.toString());
// log.msg("ScriptService.startScripts: rules",rules); //, "caller:",arguments.caller.toString());
rules.map( function(rule) {
log.msg("ScriptService.startScripts: starting ",rule);
if( !rule.path || !rule.intervalSecs ) {
Expand Down Expand Up @@ -165,7 +165,7 @@ var ScriptService = {
*/
parse: function(rule, str) {
str = str.substring(0,this.config.maxStringLength);
log.msg("ScriptService.parse:", str, "rule:",rule);
// log.msg("ScriptService.parse:", str, "rule:",rule);
var self = this;
var patternre = /pattern:\s*(#*\w+)/;
var colorre = /(#[0-9a-f]{6}|#[0-9a-f]{3}|color:\s*(.+?)\s)/i;
Expand Down Expand Up @@ -220,10 +220,8 @@ var ScriptService = {
}
else { // parse-color
matches = colorre.exec(str);
log.msg("matches:",matches, "blink1Id:", rule.blink1Id);
if( matches && matches) {
var colormatch = matches[2];
log.msg("colormatch:",colormatch);
var color = tinycolor( colormatch );
if( color.isValid() ) {
Eventer.addStatus( {type:'trigger', source:rule.type, id:rule.name, text:colormatch});
Expand Down

0 comments on commit 76cee92

Please sign in to comment.