Skip to content

Commit

Permalink
Merge pull request kamicane#25 from chielkunkels/master
Browse files Browse the repository at this point in the history
Silly bug, forgot .call
  • Loading branch information
kamicane committed Nov 11, 2013
2 parents f430a78 + bfecef8 commit 42dd2ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/browser.js
Expand Up @@ -15,8 +15,7 @@ var prime = require("prime")
var camelize = require("prime/string/camelize"),
clean = require("prime/string/clean"),
capitalize = require("prime/string/capitalize"),
hyphenateString = require("prime/string/hyphenate"),
matchString = String.prototype.match
hyphenateString = require("prime/string/hyphenate")

var map = require("prime/array/map"),
forEach = require("prime/array/forEach"),
Expand All @@ -28,6 +27,10 @@ var fx = require("./fx")

// util

var matchString = function(s, r){
return String.prototype.match.call(s, r);
}

var hyphenated = {}
var hyphenate = function(self){
return hyphenated[self] || (hyphenated[self] = hyphenateString(self))
Expand Down

0 comments on commit 42dd2ee

Please sign in to comment.