-
Notifications
You must be signed in to change notification settings - Fork 183
Simple "Hello World" extension
mikechambers edited this page May 15, 2012
·
26 revisions
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, $, brackets */
define(function (require, exports, module) {
'use strict';
// Brackets modules
var DocumentManager = brackets.getModule("document/DocumentManager");
var $item = $("<li></li>");
$("<a href='#' id='hello-world'>Hello World</a>")
.click(function () {
alert("Hello Document: " + DocumentManager.getCurrentDocument().file.fullPath);
})
.appendTo($item);
$("#menu-experimental-usetab").parent().after($item);
});