   name: -> @doc.get('./name').text()
 
   version: ->
-    v = @doc.get('./version').text()
-    v = v.split '.'
+    v = @doc.get('./version').text().split '.'
     if v.length < 3
       v = v.concat('0' for i in [0 .. (2 - v.length)])
     v.join '.'

class AppXML

  file: -> $._('tiapp.xml')
  exist: -> fs.existsSync @file()

  constructor: ->

fs         = require 'fs'
libxml     = require 'libxmljs'
spawn      = require('child_process').spawn


class $

