       this
 
     has: (id) ->
-      (@get('mask') & 1<<id) isnt 0
+      (@get('mask') & 1<<+id) isnt 0
 
     bitwiseFn: (callback) ->
       mask = @get 'mask'


define ['ember', './Core'], (Em, VU) ->

  BitObject = Em.ObjectProxy.extend
    mask: 0

    add: (id) ->
      id = +id

        mask >>= 1
        term++
      this

    toString: ->
      mask = @get 'mask'
