createServer(assign({}, TEST_CONFIG, { ports: testPorts, domains: [host] }), helloWorld) .once('error', t.fail) .once('listening', function () {
assign({}, EventEmitter.prototype, { addChangeListener: function (callback) { this.on('change', callback); }, removeChangeListener: function (callback) { this.removeListener('change', callback); }, getTweet: function () { return tweet; } })
AppDispatcher.dispatch({ type: SocialConstants.SYNC_TWEETS, tweets: json.map((tweet) => { return assign(tweet, {type: 'tweet'}) }), receivedAt: Date.now() });
editTodo(index : number) : void { console.log(`edit ${index}`); let route = assign( {}, ROUTE.add, {index: index, todo: TodoStore.getTodo(index)}, ); this.props.navigator.push(route); }
/** * Update a TODO item. * @param {string} id * @param {object} updates An object literal containing only the data to be * updated. */ function update(id, updates) { _todos = _todos.set(id, assign({}, _todos.get(id), updates)); }
assign(new Dispatcher(), { handleViewAction: function (action) { this.dispatch({ source: constants.VIEW_ACTION, action: action }) } })
AppDispatcher.dispatch({ type: SocialConstants.SYNC_REDDITS, reddits: json.data.children.map((child) => { return assign(child.data, {type: 'reddit'}) }), receivedAt: Date.now() });
showTimePickerIOS(navigator : ReactClass<Navigator>, date: Date) : void { let route = assign({}, ROUTE.time, { date : date }); navigator.push(route); }
assign({}, EventEmitter.prototype, { addChangeListener: function(callback) { this.on('change', callback); }, removeChangeListener: function(callback) { this.removeChangeListener('change', callback); }, getTweet: function() { return tweet; } })
assign(new Dispatcher(), { handleViewAction: function(action){ this.dispatch({ source: 'VIEW_ACTION', action: action }); } })
assign(new Dispatcher(),{ handleViewAction: function(action){ var payload = { source: 'VIEW_ACTION', action: action }; this.dispatch(payload); } })
assign(new Dispatcher(),{ handleViewAction : function(action){ var payload = { source: 'VIEW_ACTION', action: action }; this.dispatch(payload); } })
assign(new Dispatcher(), { handleViewAction : function(action){ var payload = { source: 'VIEW_ACTION', action: action }; this.dispatch(payload); } })
assign(new Dispatcher(), { handleViewAction: function(action) { var payload = { source: 'VIEW_ACTION', action: action } this.dispatch(payload); } })