### # ownCloud news app # # @author Alessandro Cosentino # @author Bernhard Posselt # Copyright (c) 2012 - Alessandro Cosentino # Copyright (c) 2012 - Bernhard Posselt # # This file is licensed under the Affero General Public License version 3 or # later. # # See the COPYING-README file # ### angular.module('News').factory '_FeedModel', ['Model', (Model) -> class FeedModel extends Model constructor: () -> super() add: (item) -> super(@bindAdditional(item)) bindAdditional: (item) -> if item.icon == "url()" item.icon = 'url(' + OC.imagePath('news', 'rss.svg') + ')' return item return FeedModel ]