Skip to content

Commit

Permalink
Merge pull request kamicane#24 from chielkunkels/master
Browse files Browse the repository at this point in the history
Bump prime and elements to their latest versions
  • Loading branch information
kamicane committed Nov 11, 2013
2 parents ab7266b + 2148159 commit f430a78
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions lib/browser.js
Expand Up @@ -10,17 +10,17 @@ var color = require("./color"),
var cancelFrame = frame.cancel,
requestFrame = frame.request

var prime = require("prime"),
array = require("prime/es5/array"),
string = require("prime/shell/string")
var prime = require("prime")

var camelize = string.camelize,
clean = string.clean,
capitalize = string.capitalize
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

var map = array.map,
forEach = array.forEach,
indexOf = array.indexOf
var map = require("prime/array/map"),
forEach = require("prime/array/forEach"),
indexOf = require("prime/array/indexOf")

var elements = require("elements")

Expand All @@ -30,7 +30,7 @@ var fx = require("./fx")

var hyphenated = {}
var hyphenate = function(self){
return hyphenated[self] || (hyphenated[self] = string.hyphenate(self))
return hyphenated[self] || (hyphenated[self] = hyphenateString(self))
}

var round = function(n){
Expand Down Expand Up @@ -119,7 +119,7 @@ var parseColor = function(value, normalize){

var parseLength = function(value, normalize){
if (value == null || value === "") return normalize ? "0px" : ""
var match = string.match(value, rLengthNum)
var match = matchString(value, rLengthNum)
return match ? match[1] + (match[2] || "px") : value // cannot be parsed. probably "auto"
}

Expand Down Expand Up @@ -282,7 +282,7 @@ parsers.borderStyle = function(value, normalize){
}

parsers.borderColor = function(value, normalize){
if (!value || !(value = string.match(value, color.x))) return normalize ? mirror4(["rgba(0,0,0,1)"]).join(" ") : ""
if (!value || !(value = matchString(value, color.x))) return normalize ? mirror4(["rgba(0,0,0,1)"]).join(" ") : ""
return clean(mirror4(map(value, function(v){
return parseColor(v, normalize)
})).join(" "))
Expand Down
4 changes: 2 additions & 2 deletions lib/frame.js
Expand Up @@ -2,7 +2,7 @@
requestFrame / cancelFrame
*/"use strict"

var array = require("prime/es5/array")
var indexOf = require("prime/array/indexOf")

var requestFrame = global.requestAnimationFrame ||
global.webkitRequestAnimationFrame ||
Expand All @@ -23,7 +23,7 @@ var iterator = function(time){
}

var cancel = function(callback){
var io = array.indexOf(callbacks, callback)
var io = indexOf(callbacks, callback)
if (io > -1) callbacks.splice(io, 1)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/fx.js
Expand Up @@ -6,7 +6,7 @@ var prime = require("prime"),
requestFrame = require("./frame").request,
bezier = require("cubic-bezier")

var map = require("prime/es5/array").map
var map = require("prime/array/map")

var sDuration = "([\\d.]+)(s|ms)?",
sCubicBezier = "cubic-bezier\\(([-.\\d]+),([-.\\d]+),([-.\\d]+),([-.\\d]+)\\)"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -22,8 +22,8 @@
},
"dependencies": {
"cubic-bezier": "0.1",
"prime": "0.1",
"elements": "0.1"
"prime": "0.3",
"elements": "0.2"
},
"sources": [
"./moofx.js"
Expand Down

0 comments on commit f430a78

Please sign in to comment.