Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 936623 - Deprecate Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvold committed Dec 18, 2013
1 parent 7eee510 commit be9558a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/sdk/widget.js
@@ -1,13 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";

// The widget module currently supports only Firefox.
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=560716
module.metadata = {
"stability": "stable",
"stability": "deprecated",
"engines": {
"Firefox": "*"
}
Expand Down Expand Up @@ -55,6 +54,11 @@ const unload = require("./system/unload");
const { getNodeView } = require("./view/core");
const prefs = require('./preferences/service');

require("./util/deprecate").deprecateUsage(
"The widget module is deprecated. " +
"Please consider using the sdk/ui module instead."
);

// Data types definition
const valid = {
number: { is: ["null", "undefined", "number"] },
Expand Down

0 comments on commit be9558a

Please sign in to comment.