projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e98f6b
)
Add Lolcat subclass.
author
Mike Taylor
<mike@indexdata.com>
Thu, 3 Apr 2014 16:26:26 +0000
(17:26 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 3 Apr 2014 16:26:26 +0000
(17:26 +0100)
src/mkws-widget-image.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-image.js
b/src/mkws-widget-image.js
index
c6d96f1
..
c0c9723
100644
(file)
--- a/
src/mkws-widget-image.js
+++ b/
src/mkws-widget-image.js
@@
-7,3
+7,8
@@
mkws.registerWidgetType('GoogleImage', function() {
mkws.promotionFunction('Image').call(this);
if (!this.config.target) this.config.target = 'Google_Images';
});
+
+mkws.registerWidgetType('Lolcat', function() {
+ mkws.promotionFunction('GoogleImage').call(this);
+ if (!this.config.autosearch) this.config.autosearch = 'kitteh';
+});