Skip to content

Commit

Permalink
rename to event
Browse files Browse the repository at this point in the history
  • Loading branch information
sconover committed Feb 16, 2011
1 parent b436caf commit 9eb76d1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/async_functions.js → lib/event_functions.js
@@ -1,4 +1,4 @@
AsyncFunctions = function(features) {
EventFunctions = function(features) {
var functionsForExport = {}

function filter(selector, callback) {
Expand Down
2 changes: 1 addition & 1 deletion spec/async/filter_spec.js → spec/event/filter_spec.js
Expand Up @@ -2,7 +2,7 @@ require("./spec_helper.js");

describe("filter", function() {

var f = AsyncFunctions().functions
var f = EventFunctions().functions

it("filter out items", function(){
var results = []
Expand Down
7 changes: 1 addition & 6 deletions spec/async/map_spec.js → spec/event/map_spec.js
Expand Up @@ -2,13 +2,8 @@ require("./spec_helper.js");

describe("map", function() {

var f = AsyncFunctions().functions
var f = EventFunctions().functions

//in a way "stream" is now inaccurate.
//stream implies order. async means it may or may not be ordered,
//there's no way for the library to tell
//in fact there's no way for the library to even get in the way...it just getting called back and doing some tranform on the result.

it("simply transforms a value from a callback", function(){
var results = []
var mapper = f.map(function(item){return "x" + item}, function(transformedItem){results.push(transformedItem)})
Expand Down
2 changes: 1 addition & 1 deletion spec/async/spec_helper.js → spec/event/spec_helper.js
Expand Up @@ -7,4 +7,4 @@ for(var key in jasmine) {
global[key] = jasmine[key]
}

require("async_functions")
require("event_functions")
File renamed without changes.

0 comments on commit 9eb76d1

Please sign in to comment.