Skip to content

Commit

Permalink
remove new operators
Browse files Browse the repository at this point in the history
  • Loading branch information
basecode committed Sep 28, 2012
1 parent 618e72f commit 1eb202d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/svg/svg.js
Expand Up @@ -79,7 +79,7 @@ define([

function createElement(n, id) {
if (!n) {
throw new TypeError('Invalid tag name: ' + n);
throw TypeError('Invalid tag name: ' + n);
}
var el = (elCache[n] || (elCache[n] = document.createElementNS('http://www.w3.org/2000/svg', n))).cloneNode(false);
if (id || id === 0) {
Expand Down Expand Up @@ -621,7 +621,7 @@ define([
var video = AssetController.assets[id];

if (typeof video === 'undefined') {
throw new Error('asset <' + id + '> is unknown.');
throw Error('asset <' + id + '> is unknown.');
}

var width = attributes.width || 100;
Expand Down Expand Up @@ -658,7 +658,7 @@ define([
var playing = attributes.playing;

if (typeof audioElement === 'undefined') {
throw new Error('asset <' + id + '> is unknown.');
throw Error('asset <' + id + '> is unknown.');
}

if (attributes.prepareUserEvent) {
Expand Down

0 comments on commit 1eb202d

Please sign in to comment.