 
   lockDefaultCode: (force=false) ->
     # TODO: Lock default indent for an empty line?
-    lockDefaultCodeAttr = @options.level.get 'lockDefaultCode'
-    if typeof lockDefaultCodeAttr == 'number' and lockDefaultCodeAttr < me.level() or
-       typeof lockDefaultCodeAttr == 'boolean' and lockDefaultCodeAttr is false
+    lockDefaultCode = @options.level.get('lockDefaultCode') or false
+    if not lockDefaultCode or (_.isNumber(lockDefaultCode) and lockDefaultCode < me.level())
       return
     return unless @spell.source is @spell.originalSource or force
 

    @zatanna.addSnippets [], @editorLang if @editorLang?
    $(window).off 'resize', @onWindowResize
    super()
    
commentStarts =
  javascript: '//'
  python: '#'

    commentStart = commentStarts[@spell.language] or '//'
    @_singleLineCommentRegex = new RegExp "[ \t]*#{commentStart}[^\"'\n]*", 'g'
    @_singleLineCommentRegex

  commentOutMyCode: ->
    prefix = if @spell.language is 'javascript' then 'return;  ' else 'return  '
    comment = prefix + commentStarts[@spell.language]

  preload: ->
    # Send this code over to the God for preloading, but don't change the cast state.
    oldSource = @spell.source
