Skip to content

Commit 7067946

Browse files
committed
Added FrameworkImage.make(fn).
1 parent 7fc7e57 commit 7067946

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

changes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- added: `U.get(obj, path)` reads a value from `obj` by path
77
- added: `U.set(obj, path, value)` sets a value into `obj` by path
88
- added: (IMPORTANT) `config['default-root']` can replace root relative path
9+
- added: FrameworkImage --> `instance.make(function(image) {})`
910

1011
- updated: (IMPORTANT) Array.async([NEW: threadCount (Number)], [callback]) supports `threads`
1112
- updated: Date.format(format, [resource_name]) supports name of months via `MMM` (short) and `MMMM` (full)

image.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/**
2323
* @module FrameworkImage
24-
* @version 1.9.6
24+
* @version 1.9.7
2525
*/
2626

2727
'use strict';
@@ -763,6 +763,11 @@ Image.prototype.sepia = function(percentage) {
763763
return this.push('-modulate', '115,0,100', 4).push('-colorize', '7,21,50', 5);
764764
};
765765

766+
Image.prototype.make = function(fn) {
767+
fn.call(this, this);
768+
return this;
769+
};
770+
766771
/*
767772
@cmd {String}
768773
@priority {Number}

0 commit comments

Comments
 (0)