Skip to content

Commit 1194fa0

Browse files
committed
Rename annotator.plugin -> annotator.ext
1 parent 15806a5 commit 1194fa0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ exports.storage = storage;
1818
exports.ui = ui;
1919
exports.util = util;
2020

21-
// Plugin namespace (for core-provided plugins)
22-
exports.plugin = {};
21+
// Ext namespace (for core-provided extension modules)
22+
exports.ext = {};
2323

2424
var g = util.getGlobal();
2525

src/plugin/document.js renamed to src/ext/document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ var doc = function () {
271271
};
272272
};
273273

274-
annotator.plugin.document = doc;
274+
annotator.ext.document = doc;
275275

276276
exports.document = doc;
277277
exports.absoluteUrl = absoluteUrl;

src/plugin/unsupported.js renamed to src/ext/unsupported.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function unsupported() {
6262
}
6363

6464

65-
annotator.plugin.unsupported = unsupported;
65+
annotator.ext.unsupported = unsupported;
6666

6767
exports.checkSupport = checkSupport;
6868
exports.unsupported = unsupported;

test/spec/plugin/document_spec.js renamed to test/spec/ext/document_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var assert = require('assertive-chai').assert;
22
var util = require('../../../src/util');
3-
var doc = require('../../../src/plugin/document');
3+
var doc = require('../../../src/ext/document');
44

55
var $ = util.$;
66

@@ -31,7 +31,7 @@ var FIXTURE_METADATA = {
3131
prism: ['<meta name="prism.title" content="Literary Machines">']
3232
};
3333

34-
describe('document plugin', function () {
34+
describe('annotator.ext.document module', function () {
3535
var tags = null,
3636
metadata = null;
3737

test/spec/plugin/unsupported_spec.js renamed to test/spec/ext/unsupported_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var assert = require('assertive-chai').assert;
22

3-
var unsupported = require('../../../src/plugin/unsupported');
3+
var unsupported = require('../../../src/ext/unsupported');
44

55

66
describe("unsupported.checkSupport()", function () {
@@ -58,7 +58,7 @@ describe("unsupported.checkSupport()", function () {
5858
});
5959

6060

61-
describe('unsupported plugin', function () {
61+
describe('annotator.ext.unsupported module', function () {
6262
var mockApp;
6363
var sandbox = sinon.sandbox.create();
6464

tools/serve

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ app.use('/api/token', function(request, response) {
3333
});
3434

3535
app.use('/bundle/annotator.js', browserify('index.js', {standalone: 'annotator'}));
36-
app.use('/bundle/plugin', function (req, res, next) {
36+
app.use('/bundle/ext', function (req, res, next) {
3737
// browserify-middleware expects req.path to be set
3838
req.path = req.url;
39-
browserify('src/plugin/')(req, res, next);
39+
browserify('src/ext/')(req, res, next);
4040
});
4141

4242
// Static files

0 commit comments

Comments
 (0)