diff --git a/index.js b/index.js index fc4b9c6..4031d33 100644 --- a/index.js +++ b/index.js @@ -20,11 +20,12 @@ function ObservVarhash (hash, createValue) { } var obs = Observ(initialState) - obs._removeListeners = {} + setNonEnumerable(obs, '_removeListeners', {}) - obs.get = get.bind(obs) - obs.put = put.bind(obs, createValue) - obs.delete = del.bind(obs) + setNonEnumerable(obs, 'set', obs.set) + setNonEnumerable(obs, 'get', get.bind(obs)) + setNonEnumerable(obs, 'put', put.bind(obs, createValue)) + setNonEnumerable(obs, 'delete', del.bind(obs)) for (key in hash) { obs[key] = typeof hash[key] === 'function' ?