~deadlight/+junk/ubuntu-videos

« back to all changes in this revision

Viewing changes to static/js/core.js

  • Committer: Karl Williams
  • Date: 2014-05-02 14:25:48 UTC
  • mfrom: (1033.1.12 ubuntu-website-content)
  • Revision ID: karl.williams@canonical.com-20140502142548-6giwd2qrotgo6c1d
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        }
175
175
 
176
176
        core.svgFallback = function() {
177
 
                if (!Modernizr.svg || !Modernizr.backgroundsize) {
178
 
                        Y.all("img[src$='.svg']").each(function(node) {
179
 
                                node.setAttribute("src", node.getAttribute('src').toString().match(/.*\/(.+?)\./)[0]+'png');
180
 
                        });
 
177
                if(Modernizr){
 
178
                        if (!Modernizr.svg || !Modernizr.backgroundsize) {
 
179
                                Y.all("img[src$='.svg']").each(function(node) {
 
180
                                        node.setAttribute("src", node.getAttribute('src').toString().match(/.*\/(.+?)\./)[0]+'png');
 
181
                                });
 
182
                        }
181
183
                }
182
184
        };
183
185