Permalink
Browse files

Single to double quotes

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information...
nvh committed Sep 14, 2016
1 parent cbd8339 commit d80347c162c133a4a51b7e7eb48a031a1fc27b26
Showing with 18 additions and 18 deletions.
  1. +1 −1 framer/Animation.coffee
  2. +7 −7 framer/Color.coffee
  3. +2 −2 framer/Layer.coffee
  4. +1 −1 framer/LayerStateMachine.coffee
  5. +3 −3 framer/Simulation.coffee
  6. +4 −4 framer/Utils.coffee
View
@@ -23,7 +23,7 @@ AnimatorClasses["cubic-bezier"] = AnimatorClasses["bezier-curve"]
AnimatorClassBezierPresets = ["ease", "ease-in", "ease-out", "ease-in-out"]
numberRE = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/
relativePropertyRE = new RegExp('^(?:([+-])=|)(' + numberRE.source + ')([a-z%]*)$', 'i')
relativePropertyRE = new RegExp("^(?:([+-])=|)(" + numberRE.source + ")([a-z%]*)$", "i")
isRelativeProperty = (v) ->
_.isString(v) and relativePropertyRE.test(v)
View
@@ -529,17 +529,17 @@ pad2 = (char) ->
# Matchers
matchers = do ->
css_integer = '[-\\+]?\\d+%?'
css_integer = "[-\\+]?\\d +%?"
css_number = "[-\\+]?\\d*\\.\\d+%?"
css_unit = "(?:" + css_number + ")|(?:" + css_integer + ")"
permissive_match3 = '[\\s|\\(]+(' + css_unit + ')[,|\\s]+(' + css_unit + ')[,|\\s]+(' + css_unit + ')\\s*\\)?'
permissive_match4 = '[\\s|\\(]+(' + css_unit + ')[,|\\s]+(' + css_unit + ')[,|\\s]+(' + css_unit + ')[,|\\s]+(' + css_unit + ')\\s*\\)?'
permissive_match3 = "[\\s|\\(]+(" + css_unit + ")[,|\\s]+(" + css_unit + ")[,|\\s]+(" + css_unit + ")\\s*\\)?"
permissive_match4 = "[\\s|\\(]+(" + css_unit + ")[,|\\s]+(" + css_unit + ")[,|\\s]+(" + css_unit + ")[,|\\s]+(" + css_unit + ")\\s*\\)?"
return {
rgb: new RegExp('rgb' + permissive_match3)
rgba: new RegExp('rgba' + permissive_match4)
hsl: new RegExp('hsl' + permissive_match3)
hsla: new RegExp('hsla' + permissive_match4)
rgb: new RegExp("rgb" + permissive_match3)
rgba: new RegExp("rgba" + permissive_match4)
hsl: new RegExp("hsl" + permissive_match3)
hsla: new RegExp("hsla" + permissive_match4)
hex3: /^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/
hex6: /^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
}
View
@@ -902,7 +902,7 @@ class exports.Layer extends BaseClass
@animate properties, options
animate: (properties,options={}) ->
if typeof properties == 'string'
if typeof properties == "string"
stateName = properties
return @animateToState stateName, options
@@ -948,7 +948,7 @@ class exports.Layer extends BaseClass
animateToNextState: (stateNames=[],options) ->
if not Array.isArray(stateNames)
if not options? and typeof stateNames is 'object'
if not options? and typeof stateNames is "object"
options = stateNames
stateNames = []
else
@@ -43,7 +43,7 @@ class exports.LayerStateMachine extends BaseClass
reset: ->
@states = new LayerStates(@)
@_previousNames = []
@currentName = 'initial'
@currentName = "initial"
emit: (args...) ->
super
View
@@ -11,9 +11,9 @@ Utils = require "./Utils"
{FrictionSimulator} = require "./Simulators/FrictionSimulator"
{MomentumBounceSimulator} = require "./Simulators/MomentumBounceSimulator"
Events.SimulationStart = 'simulationStart'
Events.SimulationStep = 'simulationStep'
Events.SimulationStop = 'simulationStop'
Events.SimulationStart = "simulationStart"
Events.SimulationStep = "simulationStep"
Events.SimulationStop = "simulationStop"
SimulatorClasses =
"spring": SpringSimulator
View
@@ -18,7 +18,7 @@ Utils.getValueForKeyPath = (obj, key) ->
result
Utils.setValueForKeyPath = (obj, path, val) ->
fields = path.split('.')
fields = path.split(".")
result = obj
i = 0
n = fields.length
@@ -27,7 +27,7 @@ Utils.setValueForKeyPath = (obj, path, val) ->
if i == n - 1
result[field] = val
else
if typeof result[field] == 'undefined' or !_.isObject(result[field])
if typeof result[field] == "undefined" or !_.isObject(result[field])
result[field] = {}
result = result[field]
i++
@@ -872,7 +872,7 @@ Utils.frameMerge = ->
frame
Utils.frameInFrame = (frameA, frameB) ->
for point in Utils.pointsFromFrame(frameA)
return false unless Utils.pointInFrame(point, frameB)
@@ -1015,7 +1015,7 @@ Utils.convertPointFromContext = (point = {}, layer, rootContext=false, includeLa
ancestors = layer.ancestors(rootContext)
ancestors.reverse()
ancestors.push(layer) if includeLayer
for ancestor in ancestors
continue unless ancestor.matrix3d
point = ancestor.matrix3d.inverse().point(point)

0 comments on commit d80347c

Please sign in to comment.