diff options
author | anekos | 2008-12-17 17:34:12 +0000 |
---|---|---|
committer | anekos | 2008-12-17 17:34:12 +0000 |
commit | dd524c4882d3e8cea3bbf826a556827841af9d7f (patch) | |
tree | 95d0dbcd0345c74fbaa8c670738d260bd3a5f977 | |
parent | d14e8af2044a53df99bc3e4dc73091428fdf7afe (diff) | |
download | vimperator-plugins-dd524c4882d3e8cea3bbf826a556827841af9d7f.tar.bz2 |
対応していない機能を利用しようとしたときに、エラーを出すように。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26974 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | stella.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -38,7 +38,7 @@ let PLUGIN_INFO = <name lang="ja">すてら</name> <description>Show video informations on the status line.</description> <description lang="ja">ステータスラインに動画の再生時間などを表示する。</description> - <version>0.10</version> + <version>0.11</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos2</author> <license>new BSD License (Please read the source code comments of this plugin)</license> @@ -361,6 +361,7 @@ Thanks: // t = toggle Player.prototype = { functions: { + comment: '', currentTime: '', fileExtension: 'r', fileURL: '', @@ -634,7 +635,6 @@ Thanks: let result = []; let doc = content.document; let r = doc.evaluate("//div[@class='video-mini-title']/a", doc, null, 7, null); - liberator.log(r.snapshotLength) for (let i = 0, l = r.snapshotLength; i < l; i++) { let e = r.snapshotItem(i); result.push(new RelatedID(YouTubePlayer.getIDfromURL(e.href), e.textContent)); @@ -1224,6 +1224,8 @@ Thanks: p[func] = arg[0]; else if (p.has(func, 'x')) p[func].apply(p, arg); + else + raise('Stella: The function is not supported in this page.'); self.update(); }, {argCount: '*', bang: !!funcB}, |