summaryrefslogtreecommitdiffstats
path: root/src/pattern.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-06 22:28:20 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-06 22:28:20 +0100
commit3cb00000586340276998144d202d7af35c47ae36 (patch)
tree6b431cf16f05efeef63e145d1d1dc6aaceede4fb /src/pattern.js
parent2702ceb26d3021720f3ff979bcf5f46fc65699e9 (diff)
downloadsvg.js-3cb00000586340276998144d202d7af35c47ae36.tar.gz
svg.js-3cb00000586340276998144d202d7af35c47ae36.zip
tab to space, block comments to line comments
Diffstat (limited to 'src/pattern.js')
-rw-r--r--src/pattern.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/pattern.js b/src/pattern.js
index 6bd3f1a..fed33c8 100644
--- a/src/pattern.js
+++ b/src/pattern.js
@@ -8,24 +8,24 @@ SVG.Pattern = SVG.invent({
// Add class methods
, extend: {
// Return the fill id
- fill: function() {
- return 'url(#' + this.id() + ')'
- }
- // Update pattern by rebuilding
- , update: function(block) {
+ fill: function() {
+ return 'url(#' + this.id() + ')'
+ }
+ // Update pattern by rebuilding
+ , update: function(block) {
// remove content
this.clear()
// invoke passed block
if (typeof block == 'function')
- block.call(this, this)
+ block.call(this, this)
return this
- }
- // Alias string convertion to fill
- , toString: function() {
- return this.fill()
- }
+ }
+ // Alias string convertion to fill
+ , toString: function() {
+ return this.fill()
+ }
// custom attr to handle transform
, attr: function(a, b, c) {
if(a == 'transform') a = 'patternTransform'
@@ -37,9 +37,9 @@ SVG.Pattern = SVG.invent({
// Add parent method
, construct: {
// Create pattern element in defs
- pattern: function(width, height, block) {
- return this.defs().pattern(width, height, block)
- }
+ pattern: function(width, height, block) {
+ return this.defs().pattern(width, height, block)
+ }
}
})