From 9ea3766d69749cbe9a6ac3302e57327ffe123c85 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 3 Apr 2014 17:19:11 +0100 Subject: [PATCH] Add "GoogleImage" subclass widget. --- src/mkws-widget-image.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mkws-widget-image.js b/src/mkws-widget-image.js index 61bdab1..c6d96f1 100644 --- a/src/mkws-widget-image.js +++ b/src/mkws-widget-image.js @@ -2,3 +2,8 @@ mkws.registerWidgetType('Image', function() { mkws.promotionFunction('Record').call(this); if (!this.config.template) this.config.template = 'Image'; }); + +mkws.registerWidgetType('GoogleImage', function() { + mkws.promotionFunction('Image').call(this); + if (!this.config.target) this.config.target = 'Google_Images'; +}); -- 1.7.10.4