modmore / CodeMirror

Integration for CodeMirror into MODx Revolution
12 stars 7 forks source link

Fix of conversion value type (int) to (boolean) #17

Closed hansek closed 12 years ago

hansek commented 12 years ago

Hi, I found a bug with indentation in CodeMirror. After change value for settings "tabSize", CodeMirror still indent only for 1 space.

I look into plugin code and found minor bug in variable type conversion. tabSize is integer and in script was converted to boolean (any number to boolen is value 1, so the 1 space for indenation).

Hansek